- This topic has 9 replies, 4 voices, and was last updated 20 years, 4 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-Beta2
Riyad KallaMemberAlex,
Not currently, but documentation and tutorials is going to become numero uno priority after 3.8 GA comes out.
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.
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
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?
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#105
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
Riyad KallaMemberAhh yes, use snpe’s suggestion first if you haven’t done so already (thank you for the post snpe)
balusanisriMemberThat works …
Thanks a lot for the help by both of you guys
Riyad KallaMemberGreat, glad to hear it.
-
AuthorPosts