Hello i’ve been trying to use this functionality for a few days and i cant get it to work.
I start out by opening up a database connection and clicking on the table i want to create the pojo for.
I click Create Hibernate Mapping, and only select “Java Data Object (POJO <> DB Table)”.
I fill in the Persistence Class , Java src folder, and java package.
I click finish and i receive an error.
An internal error occurred during: “Generating Artifacts”.
java.lang.IllegalArgumentException: Path must include project and resource name: /
at org.eclipse.core.internal.utils.Assert.isLegal(Assert.java:60)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1560)
at org.eclipse.core.internal.resources.Container.getFile(Container.java:125)
at com.genuitec.eclipse.hibernate.util.HibernateUtils.getConfigFile(HibernateUtils.java:311)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:165)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:154)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:198)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
MyEclipse Enterprise Workbench
Version: 4.1.1 GA
Build id: 20060228-4.1.1-GA
Eclipse SDK
Version 3.1.1
Build id: M20050929-0840
I’m using Hibernate 3.0.
The database is oracle