-->
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: Starting from POJO's
PostPosted: Mon Oct 17, 2005 10:49 am 
Newbie

Joined: Wed Mar 09, 2005 12:36 am
Posts: 12
To make sure I'm not missing something with the 3.x Tools. If I want to author my POJO's, and then generate mappings and ddl, XDoclet annotations will have to be what I use, correct?

I see Hibernate Tools that support the other direction (author the ddl, generate the mappings and POJO's), but I don't see a Hibernate Tool to go from POJO's to mappings and ddl.

Makes sense for Hibernate not to spend time providing that if XDoclet works well. I just wanted to make sure that that people weren't migrating away from that like they are for Middlegen since Hibernate Tools now does that stuff for you.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 7:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You basically have two options when starting from POJOs;
1) XDoclet - I use it for a reasonably large application that I have been building. There are two versions to choose from; XDoclet 1.3.x and XDoclet 2. Both have good support for H2 and reasonable support for H3.

2) Use annotations - This works very well, requires H3 and Java 5. You can choose to restrict yourself to JSR 220 markup and thus be portable (not that you would want to move from HIbernate :-)).


Top
 Profile  
 
 Post subject: Thank you
PostPosted: Mon Oct 17, 2005 8:30 pm 
Newbie

Joined: Wed Mar 09, 2005 12:36 am
Posts: 12
Thank you sir. If I go the EJB3 Annotations route, what's the documentation like? I saw the simple example on the Hibernate site (http://www.hibernate.org/247.html), but is there comprehensive documentation out there describing the things I'm used to working with in terms of XDoclet (one-to-many, many-to-many, lazy loading, yada, yada, yada)?


Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 18, 2005 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
HIbernates implementation is under the EntityManager sub-project
http://www.hibernate.org/299.html

This is tracking the standards. If you goto the documentation you will see an annotations section and a EntityManager section both have the information necessary to move forward, eg, for associations, see
http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.html#entity-mapping-association

There are links to samples, eg, JBoss Trailblaser tutorials and demos.

Hope you find this is a good start.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 10:41 am 
Newbie

Joined: Wed Mar 09, 2005 12:36 am
Posts: 12
Again...thank you very much for the prompt response. You have been very helpful.


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.