Read in Advanced Tutorial to understand the usage of id and natural key.
http://www.fornax-platform.org/cp/display/fornax/3.+Advanced+Tutorial+%28CSC%29#3.AdvancedTutorial%28CSC%29-Key

Note that id is a surrogate key (sequence number) used in the database. You
should never add id in model.design. The attribute marked with 'key' is the
natural key. If no attribute is marked with 'key' there will be a uuid.

/Patrik

termiX wrote:
> 
> Hi,
> 
> please, can You tell me, what is wrong in my model.design. 
> 
> When I have not "Long id key" in this file in my Entity, sculptor
> generated "private Long id;" (in ..Base class) automatically, and also
> generate uuid property (get/set methods). 
> 
> When I add "Long id key" to my model.design file, sculptor generate
> "private Long id;" (and also get/set methods) twice, but don`t generate
> uuid property. 
> 
> But, i need only one id property :-) and i don`t need uuid property. 
> 
> thanks!
> 
> Ivan
> 

-- 
View this message in context: 
http://www.nabble.com/generate-id-tp18432568s17564p18439231.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to