-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: XDocelt2: property + key-property
PostPosted: Mon Mar 06, 2006 6:35 am 
Newbie

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?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 08, 2006 7:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
It would be best to ask this on the XDoclet 2 list.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.