-->
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.  [ 6 posts ] 
Author Message
 Post subject: Generating DAO using Reverse Engineering
PostPosted: Fri Mar 16, 2007 8:42 pm 
Newbie

Joined: Tue Feb 15, 2005 1:19 pm
Posts: 10
Hi ,

When I use the Reverse Engineering to generate Code from Database Tables, and I would like to generate DAO's, it generates Session Beans?
I am using JPA, Hibernate 3.3. Is there a way to generate only DAO's and not Session Beans. I am new to EJB/3.0 Entity Manager Persistence.

regards
Rajesh


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 19, 2007 11:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't set ejb3=true if you don't want session beans.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 1:04 pm 
Newbie

Joined: Tue Feb 15, 2005 1:19 pm
Posts: 10
Where do I do this setting. I am using the Hibernate Reverse Engineering Tool in Eclipse. I tried adding this in the Exporters Tab, under DAO, Properties.

Is there a way to do this, if I use Eclipse Plugin?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 1:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't enable the ejb3/jpa checkbox.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 1:27 pm 
Newbie

Joined: Tue Feb 15, 2005 1:19 pm
Posts: 10
Ok, but that will not generate the Annotations in the POJO's as well. I was wondering if we could have annotated POJO's and Plain Hibernate DAO's??

thanx!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 20, 2007 5:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
generate over two times.

or set ejb3=false in the properties for the exporter you don't want it on.

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