-->
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.  [ 3 posts ] 
Author Message
 Post subject: XDoclet Vs JPA Annotations
PostPosted: Wed Feb 28, 2007 8:56 am 
Beginner
Beginner

Joined: Thu Feb 22, 2007 6:08 am
Posts: 35
Hi

Can someone explain me a few stuff about XDoclet and JPA annotations?

Im developing a webapp and i am using and learning JPA. But i red in a few forums and books that XDoclet is not a good choise once is not making much progress.

Does any onde know the differences between XDoclet Annotations and JPA annotations? Which one is better? nbxdoclet has a good wizard at the first sigth. Im just seeing a problem, the developer does not have to know much about how hibernate works once the XDoclet makes a lot of work transparent.

Any way, can some one give a feedback about XDoclet Vs JPA Annotations?

Thanks a lot

--ms


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 28, 2007 5:21 pm 
Newbie

Joined: Sun Oct 08, 2006 8:03 am
Posts: 14
XDoclet uses javadoc technology to go through the source, work out things about your software, and then output some code. Then your regular compiler/IDE uses that code together with your own code. Javadoc works with all versions of java.

If you are using Java 5, then it supports Annotations. The whole process is built into the compiler - there's no need to use a separate javadoc-like pre-processor.

Annotations are current technology (not obsolete like XDoclet), and so will be maintained and developed more. They are used for a variety of technologies (e.g. JUnit), not just Hibernate or even ORM more widely. They provide more detailed control over the ultimate behaviour of the code, too. If you're starting from scratch, there's no competition - use Annotations.

The "I want to learn Hibernate Annotations" tutorial is half way down the page at http://www.hibernate.org/152.html

Keep an eye on the Reference guide at http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/ and the Annotations FAQ at http://www.hibernate.org/329.html

John.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 01, 2007 3:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Plus, the XDoclet tags are no longer really maintained (was never done by the Hibernate team), but we do maintain actively annotations, as part of the JavaEE effort

_________________
Emmanuel


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