- This topic has 9 replies, 2 voices, and was last updated 16 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
JavierMembermy system information :
=============================================================
=============================================================
*** Date:
Tuesday, February 12, 2008 11:04:50 AM MST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.1 GA
Build id: 6.0.1-GA-200710*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.0.1 GA
Build id: 6.0.1-GA-200710Eclipse Project SDK
Version: 3.3.1.R33x_r20070802-7M7J78_mu1mnlRa7A4Ns52XeZ6D0
Build id: M20070921-1145Eclipse Platform
Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
Build id: M20070921-1145Eclipse Java Development Tools
Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
Build id: M20070921-1145Eclipse RCP
Version: 3.3.1.R33x_r20070802-8y8eE8sEV3Fz0z0GlHJrXvTAUS
Build id: M20070921-1145Eclipse Plug-in Development Environment
Version: 3.3.1.R33x_r20070802-7N7M3D1VIA_52JsDFsEC
Build id: M20070921-1145Eclipse Graphical Editing Framework
Version: 3.3.1.v20070814
Build id: 20070814-1555Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\MyEclipse6\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\MyEclipse6\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.1.R33x_v20070828\eclipse_1020.dll
-startup
C:\MyEclipse6\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata
112c_78
-vm
C:\MyEclipse6\jre\bin\javaw.exe==========================================================
==========================================================I have a project that uses Spring 2 and Hibernate 3.1. When I go to reverse engineer my tables, DB Informix with foreign keys established, My artifacts generated are not generating any relationships among the tables. Please I need an answer right away.
NOTE: I check the boxes to iinclude relationships
I used to use myeclipse version 5, and I never had a problem generating many-to-one or whatever relationships already existed in the DB.
Riyad KallaMemberCan you do me a favor, and right-click on the schema for your DB in the Database Explorer, and select “ER Diagram” and generate a new ER Diagram for your tables and see if the ER Diagram shows all the relationships?
If the ER Diagram doesn’t, then there is either something wrong with your table OR with the JDBC driver you are using in that it is either not reporting the relationships or reporting them incorrectly.
JavierMemberHi,
I did. The ER diagrams reports the relationships correctly. So I know don’t what this means, do you?
Riyad KallaMemberhmm…. when you rev-eng the tables using Hibernate, make sure you select all the tables at once and leave all the settings at their defaults, don’t worry about tweaking the relationship settings… did that generate the proper relationships?
JavierMemberI have done that, and many other things; trying to make it work, but it doesn’t.
Riyad KallaMemberAre there any errors getting logged to the log file when the rev-eng occurs?
You can go to Window > Show View > Other… and select the General > Errors View. Then click the red “X” to clear it, and re-run the rev-eng process and see if anything gets logged.
If no errors get logged, can you post the DDL for 2 tables that are related as an example of what you are working with… I’m really at a loss as to what is going on.
JavierMemberWell, it turned out to be the driver. We were using Informix driver 3.1, and then we switch to 3.0 and entities relationships showed up. Now I need to have generic types. I have java 1.5 installed, but how tell I tell the hibernate tools to use java 1.5 instead of 1.4?
Riyad KallaMemberOh, I’m glad you got that squared away.
The Hibernate tools don’t support Java 5, if you want to switch to using JPA (the new persistence standard) you will get annotations and generics support in the generated code though.
JavierMemberok. I have an ant file from hibernate, I can tell it to use java 1.5. My question is now how can I tell to use myeclipse classpath? I read <getEclipsePtath ….> but it’s not working?
Riyad KallaMemberjtorres,
I’m not clear on a really smooth way to integrate the out-of-process Ant script run to the internal IDE build path unfortunately. -
AuthorPosts