-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Tool ReverseEngineeringStrategy
PostPosted: Tue Sep 02, 2008 6:51 pm 
Newbie

Joined: Wed Jul 09, 2008 6:50 pm
Posts: 6
Hello Hibernate Tools developers,

Are there any plans to add additional hooks to the ReverseEngineeringStrategy class? We would like to be able to generate additional attributes and their values, specifically "cascade" and "fetch" on one-to-many attributes. Thanks in advance.

Debra Zarley


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2008 5:22 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
in the templates.

To add it to reverse engineeringstrategy would require a patch ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 05, 2008 5:16 pm 
Newbie

Joined: Wed Jul 09, 2008 6:50 pm
Posts: 6
Thanks,
So I made a change to set.hbm.ftl. Where do I put it so that it is picked up by the generator?

This is what I have done so far. I put the file in [myeclipseproject]/src/hbm. I opened the Hibernate Configuration Console and checked Use custom templates and entered "[myeclipseproject]/src/hbm" as my template directory.

The generator is still not picking up the change.

Do I have to put all of the hbm.ftl files in there?

Debra


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 05, 2008 7:24 pm 
Newbie

Joined: Wed Jul 09, 2008 6:50 pm
Posts: 6
I finally got it. If I set my template path to [myprojectname]/src then it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.