Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Hibernate users : xdoclet or annotation?

  Asked By: Leona    Date: Jan 12    Category: Java    Views: 1544
  

Simple question... Which one is better for hibernate 3, creating hbm.
xml using xdoclet, or not creating it, just use hibernate annotations.

I'm encountering a problem about this, and I humbly request your
opinions. I've just started learn hibernate, and I found that using
annotations is easier rather than using xdoclet....

To use Tiger's features (typesafe enum and generic), I have to patch
my xdoclet, but the latest release has already solve the problem (at
least for my simple pojo)... On the other side, annotations doesn't
need any patch...

Another thing, I've read some threads stating that xdoclet is almost
"death", and some developers assume that when stable release of
hibernate annotations launched, most hibernate developers will leave
hibernate-doclet...

What do you think about this issue, and since I just a newcomer in
hibernate's world, which one should I take, annotations, or (old-
style?) hbm.xml using xdoclet??

Do you ever have any problems regarding either xdoclet or annotation
before? If so, please tell me, because I need your suggestions...

Thanks

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Feodora Bonkob     Answered On: Jan 12

found  HibernateTool very easy to use, it has integreated Ant tasks
which enables you to make java pojo (with generic  features), Database
DDL ... from your hbm files.

It is an Eclipse Plug in. You can find it at
http://www.hibernate.org/255.html

 
Didn't find what you were looking for? Find more on Hibernate users : xdoclet or annotation? Or get search suggestion and latest updates.




Tagged: