- This topic has 9 replies, 4 voices, and was last updated 20 years, 11 months ago by
Riyad Kalla.
-
AuthorPosts
-
alexander malicMemberis there any documentation about the hibernate integration in ME ???
a tutorial would also be helpfull.
maybe someone is gonna write a small tutorial.
p.s.: i’m new to eclipse and myeclipse, never used hibernate, our company is going to migrate from lotus domino to java (j2ee) need fast response please cause i’m preparing a workshop for our developers to migrage to myeclipseide (we got 2 licenses yet)
thanx in advance
alex—————————————————————————————–
Eclipse:
Version: 3.0.0
Build id: 200406192000MyEclipse:
Version: 3.7.200
Build id: 200407091200-3.8-Beta2July 15, 2004 at 11:49 am #210143
Riyad KallaMemberAlex,
Not currently, but documentation and tutorials is going to become numero uno priority after 3.8 GA comes out.July 16, 2004 at 2:08 pm #210248
balusanisriMemberI am trying to use hibernate with Myeclipse beta2. But I can not see anywhere how to create .hmb.xml from database schema. Is there anyway I can do that in the currect relase? If so can someone explain me?
And also how can I generate jave code from hmb files?
Thanks for your help.July 16, 2004 at 4:14 pm #210256
Riyad KallaMemberYou can use the DB explorer tool to connect to your DB, then Export to Hibernate from that. Look at turning on some of the MyEclipse views under Window > Show Views > Other… > MyEclipse
July 16, 2004 at 5:23 pm #210262
balusanisriMemberThansk for your reply. When I try to connec to the database I am getting
oracle.jdbc.driver.OracleDriver error.
It doesnt give any more information in the error dialogue.
The dirver jar file is in the classpath . And for testing purpose I added that to the system classpath for eclipse.
In either case it doesnt work.
Am I missing anything here?July 16, 2004 at 5:26 pm #210263
Riyad KallaMemberDoes the oracle driver have a DLL portion to it, or is a pure Java driver? If it does rely on a DLL, you can look here to see how to install it correctly on your system:
http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-14.html#105July 16, 2004 at 5:27 pm #210264
snpeMemberYou have to define driver for database in Windows-preferences-myeclipse-
Database explorer-drivers (add jdbc jar – you can select jdbc jar form file system)
Then open DB Explorer perspective and create profile with this driver
– open connection
– select schema – tables and click right mouse on table
– choose export to hibernateIt create .hbm and java POJO class for this , but use deprecated Map Generator from hibernate-extensions – generator don’t recognize primary key, don’t generate composite-id etc.
regards
July 16, 2004 at 5:28 pm #210265
Riyad KallaMemberAhh yes, use snpe’s suggestion first if you haven’t done so already (thank you for the post snpe)
July 16, 2004 at 6:42 pm #210274
balusanisriMemberThat works …
Thanks a lot for the help by both of you guys
July 16, 2004 at 6:45 pm #210275
Riyad KallaMemberGreat, glad to hear it.
-
AuthorPosts