-->
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: Exporter ejb3 configuration/Business domain questions
PostPosted: Wed Feb 08, 2006 1:41 pm 
Newbie

Joined: Wed Feb 08, 2006 1:24 pm
Posts: 1
I need to configure default behaviour of EJB3 exporters because:

    I need to generate 2 entity beans with @ManyToMany instead of 3 (by default)
    There are more cases I'd like to configure exporters defult behaviour, e.g @Embedded class instead of @OneToOne


I guess it is not possible with current Hibernate Tools. Am I right?
What tools can I used instead to get annotated java classes ( I need to be able to configure generation behaviour)?

Second question :
I need to implement business domain but I do not want to modify generated classes directly(and I do not want to use DAO here). First though was to inherit my domain classee from persistance classes and add some methods in subclasses. Does anyone have any better ( and flexible) suggestions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2006 2:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you can reconfigure all the parts you want.

some of the stuff you talk about sounds more to be related to how the reverse engineering interprets the underlying database; not about how the hbiernate metamodel is converted to annotations.

e.g. creating ManyToMany is something the reverse engineering needs to actually recognize before the java code generator can see it.

But you can redefine all of it if you want. you can even just take the full database model and generate it from there.

it is avaialble in $cfg.getTableMapings().

_________________
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.