--- MartinB <[EMAIL PROTECTED]> wrote:
Hi Martin,
You are asking on wrong list. YOur problem is clearly
in hibernate plugin, and there is dedicated list
for plugins.
>
> 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?
AFAIR, key property alone will do the job.
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x? XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com