-->
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.  [ 1 post ] 
Author Message
 Post subject: hibernate tools code generation minor bug
PostPosted: Mon Nov 07, 2011 6:45 am 
Newbie

Joined: Wed Jul 15, 2009 10:30 am
Posts: 5
I named some columns _0, _1 etc.
Code generation removes the _ when naming the POJO fields and get/set methods, resulting in syntax errors, making me have to correct it. The same goes for the .hbm.xml generated file

Also it fails to mention the package name, so I have to put it in myself too

Also, I renamed a table (perhaps that's the bug reason), and afterwards, I created a new .reveng.xml only for that table, and when I create the POJO and .hbm.xml, the POJO fields are named ok, the .hbm.xml fields are named like the old table's fields. I smell a bad cache

Later I run into more related problems, seems the tool's cache or something doesn't refresh with MySQL's schema or something.


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

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.