java - Can't generate table form entity with eclipse and eclipselink -


I try to generate database structures with my organizations. To do this, I use the Eclipse Tool. I have Kepler version, but I have also tested with Juno

"right click on project -> jpa tool -> table from generating institution".

But assuming it fails with strange error:

  thread "not found exception: the main" javax.persistence.PersistenceException 'javax.persistence.provider 'Map' but property in value is not a string Objects Found: 'clear' javax.persistence.Persistence.createEntityManagerFactory org.eclipse.jpt.jpa.eclipselink.core.ddlgen.Main.buildEntityManagerFactory (Main.java:94) to (Persistence.java:131) org.eclipse.jpt on .jpa.eclipselink on .core.ddlgen.Main.execute org.eclipse.jpt.jpa.eclipselink.core.ddlgen.Main.main (Main.java:80) (Main.java:68)  

This is my firmness. XML

  & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Persistence version = "2.0" xmlns = "http://java.sun.com/xml/ns/preistence" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" XSI: Schema Locations = "Http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> & Lt; Persistent-entity name = "myapp" transaction type = "RESOURCE_LOCAL" & gt; & Lt; Provider & gt; Org.eclipse.persistence.jpa.PersistenceProvider & lt; / Provider & gt; & Lt; Will be unlisted sections & gt; False & lt; / Will be unlisted sections & gt; & Lt; Share-cache-mode & gt; ENABLE_SELECTIVE & lt; / Share-cache-mode & gt; & Lt; Properties & gt; & Lt; Property name = "javax.persistence.jdbc.url" value = "jdbc: postgresql: // localhost: 5432 / superng" /> & Lt; Property Name = "javax.persistence.jdbc.user" value = "postgres" /> & Lt; Property Name = "javax.persistence.jdbc.password" Value = "Changes" /> & Lt; Property Name = "javax.persistence.jdbc.driver" value = "org.postgresql.Driver" /> & Lt; Property Name = "eclipselink.ddl- Generation" value = "Drop-End ---- Table-Table" / & gt; & Lt; Property Name = "eclipselink.ddl-generation.output-mode" value = "sql-script" /> & Lt; / Properties & gt; & Lt; / Persistence unit & gt;    

I think that persistence.xml < / Code>, but there is no problem with the java-ee-jar and the conflict between another jar that includes javax.persistence. * packages. You need to modify java-ee jar or just to ensure for a single version of javax.persistence. * packages in classpath.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -