Joined: Wed Jan 11, 2006 5:15 am Posts: 15
|
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?
|
|