-->
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: Middlegen generating wrong field type
PostPosted: Mon Apr 25, 2005 3:55 am 
Newbie

Joined: Fri Apr 08, 2005 2:53 am
Posts: 1
Hi,

I'm using hibernate3 for my Oracle9 database. My environment is eclipse 3.0 with middlegenide 1.1.0 and middlegen plugin 2.1.1.

Everything works fine but middlegen generates Long instead of long for my primary keys which are NUMBER fields in my database. I've tried some setting to fix this problem but no success. I'm aware of the shortness of long for NUMBER but expected to have middlegen generating as per settings in the wizard.

Any suggestion?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 25, 2005 6:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
It will not generate long for PK since its unable to set to null. This is by design obviosuly you can change the code to allow it to generate builtin types for primary keys.


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.