permaculture playing cards*
The moose likes Object Relational Mapping and the fly likes IDEs support Hibernate ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "IDEs support Hibernate ???" Watch "IDEs support Hibernate ???" New topic
Author

IDEs support Hibernate ???

somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
What are IDEs support Hibernate ???


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Somkiat,

I've seen that IBM's WSAD definitely supports
Hibernate, with plug ins for different tasks.

Given that I guess there must be something
for Eclipse as well since both products, that
is eclipse and wsad, are so closely related.

Cheers,

Gian Franco Casula
[ August 31, 2004: Message edited by: Gian Franco Casula ]

"Eppur si muove!"
Gavin King
author
Ranch Hand

Joined: Aug 31, 2004
Posts: 76
You don't need any special IDE support to develop with Hibernate. However, a decent XML editor does help.


Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
What do you mean by this? There are some nice plugins in Eclipse world which can help you while developing with Hibernate.


blog - InfoQ.com
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
What do you mean by this? There are some nice plugins in Eclipse world which can help you while developing with Hibernate.


what plugins ? how do you use them, how do they help...

here is a list of eclipse plugins dealing with hibernate: http://eclipse-plugins.2y.net/eclipse/search.jsp?query=hibernate

all you need for hibernate is the mapping files... you can write them with an XML editor or use XDoclet to generate them (www.downside.ch/pascal).


cheers


pascal

PS. sorry to say but as soon as there is a book to win the signal-to-noise ratio changes significantly... (i hope a "me too" post doesn't qualify for the book :-) )
[ August 31, 2004: Message edited by: pascal betz ]
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Now, i use HibernateSynchonizer plug-in for Eclipse.

But i need to use another plug-in better than ....
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Thank you very much for link of hibernate plu-in.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Originally posted by Gavin King:
You don't need any special IDE support to develop with Hibernate. However, a decent XML editor does help.


What is name of your XML editor ?
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Even if it unrelated: I use for development Eclipse and the nice plugin is XMLBuddy (at least for me).

PS. sorry to say but as soon as there is a book to win the signal-to-noise ratio changes significantly... (i hope a "me too" post doesn't qualify for the book :-) )


True (I want to just say me too :-)). A nice tool for me is Middlegen-Hibernate. As I am using legacy databases this is helping me a lot. Indeed it is not a plugin. And about the XML editing, it is not so easy to create the mappings for 250 tables (each ranging from 10-50 fields).
Gavin King
author
Ranch Hand

Joined: Aug 31, 2004
Posts: 76
I use JEdit, actually.

Well, if people find the eclipse plugins helpful, that's great :-)

I just mean to say that they are not needed, IMO...
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Thank you very much....
Jez Nicholson
Ranch Hand

Joined: Oct 01, 2002
Posts: 39
I've found XDoclet pretty good for generating my hibernate mappings. I'm using the Eclipse Java editor templates at http://www.meagle.com:8080/hibernate_template.jsp to make the job of remembering the syntax easier. For example they let you enter 'hibprop' and hit ctl-space and receive a code completion of the XDoclet hibernate property tag.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
I use XDoclet and it works fine.
If you're interesting in using XDoclet in Hibernate, check this XDoclet for Hibernate.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Thank you,


XDoclet is seem like Ant or not ???


Now, I'm still use Ant...
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Originally posted by Somkiat Puisungnoen:
Thank you,


XDoclet is seem like Ant or not ???


Now, I'm still use Ant...


Xdoclet is different from Ant. Ant uses XML file but you use xdoclet tags in source code for example for generating XML files.


Groovy
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Thank you again.....
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Ant uses XML file but you use xdoclet tags in source code for example for generating XML files.


I think the difference is not in what they use, but it what they are needed for ;-). XDoclet will enable you generate the mappings starting from your sources (you must include in the sources some special javadoc tags), while Ant offers the de-facto standard for managing projects (build processes, distro processes, etc.). Not letting out Middlegen, I will say that it helps you generating the mappings starting from a DB - so it is used for helping you with legacy databases.

/pope
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Somkiat Puisungnoen:
XDoclet is seem like Ant or not ???


If both of them do the same work, why do we need ANT, while we have XDoclet? Or vice versa?

I believe they were born with difference aspects...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
Consider Paul's rocket mass heater.
 
subject: IDEs support Hibernate ???