-->
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: Scalar types for Foreign Keys
PostPosted: Fri Mar 16, 2007 10:53 am 
Newbie

Joined: Thu Mar 15, 2007 2:53 pm
Posts: 9
I am generating POJOs with ant script from DB.

I want to generate my foreign key references as scalar types.

For example:


User to UserStatus

I want to have my User POJO object to have

setUserStatusId(Long) instead of setUserStatus(UserStatus).

Looks like something like this is possible in eclipse with "Generate basic typed composite ids" field.

Does any one know how I can control this using ant build.xml or one of the properties files.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 19, 2007 11:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
double post!

_________________
Max
Don't forget to rate


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.