-->
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.  [ 5 posts ] 
Author Message
 Post subject: Customization of hbm2Java
PostPosted: Wed May 02, 2007 3:39 am 
Newbie

Joined: Tue Mar 06, 2007 9:09 am
Posts: 10
Hi gurus,
I'd like to customize hbm2Jjava this way:
For every hbm file create 2 java classes:
First class contain all getter and setter from hbm
Create a seecond class simply extends the first (only first time
or if doesn't exist).
In other word I'd like to mimic the behaviour of Hibernate Syncronizer.
Unfortunately, I need help because I'm not able to figure it out.
Best regards
Marco



Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 02, 2007 4:14 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
What would the 2nd class contain?

_________________
Everytime you get an answer to your question without giving credit; god kills a kitten. :(


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 02, 2007 4:18 am 
Newbie

Joined: Tue Mar 06, 2007 9:09 am
Posts: 10
Nothing. I will add business logic method. if I will generate from hbm i will not overwrite my custom code, only first class will be overwrite.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 02, 2007 5:37 am 
Senior
Senior

Joined: Sat Apr 21, 2007 11:01 pm
Posts: 144
Have a look at this post: http://forum.hibernate.org/viewtopic.php?t=973625

_________________
Everytime you get an answer to your question without giving credit; god kills a kitten. :(


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 18, 2007 9:49 am 
Newbie

Joined: Fri May 18, 2007 9:38 am
Posts: 1
Max’s step by step analysis explains it better than I expected. Mariob100 you should read it. For the future you shouldn’t try those mumbo jumbos.

_________________
brochure printing service and business card printing


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.