I have to use @hibernate.property AND @hibernate.key-property at same
methode.
I will show but explain ;o)
// here is the Problem - XDocelt dosnt do what i wont
class StationId
{
...
/**
* @hibernate.key-property
* @hibernate.property unique = "true" not-null= "true"
* @hibernate.column name = "stationID"
*/
get int stationId()...
}
class Location
{
...
/**
* @hibernate.component
*/
public StationId getId()...
}
class LocationList
{
...
/**
* @hibernate.map cascade = "save-update,persist" table = "Location_Map
* @hibernate.key column = "FK_LocationList"
* @hibernate.composite-map-key class = "de.....StationId" <--------------
* @hibernate.many-to-many column = "FK_Location" class = "de.....Location"
*/
public Map getLocations()...
}
}
XDoclet dosnt let me say "property" and "key-property" at same time! How can
I solve this?
--
View this message in context:
http://www.nabble.com/How-To-use-property-AND-key-property-at-once--t1232685.html#a3260236
Sent from the xdoclet - user forum at Nabble.com.