java - JPA Eclipse "Generating Tables From Entities" hangs forever -
On a Windows 8 64 bit machine, in Eclipse Luna, I get the form of JPA (EclipseLink 2.5.x) and your derby JDBC connection I use it.
My firmness XML so far:
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Persistence version = "2.1" xmlns = "http://xmlns.jcp.org/xml/ns/produstence" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" XSI: Schema Locations = "Http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"> & Lt; Strength-unit name = "Report Witter" Transaction type = "RESOURCE_LOCAL" & gt; & Lt; Classes & gt; Com.example.clazz & lt; / Square & gt; & Lt; Classes & gt; Com.example.CommentBank & lt; / Square & gt; & Lt; Classes & gt; Com.example.CommentCategory & lt; / Square & gt; & Lt; Classes & gt; Com.example.CourseWork & lt; / Square & gt; & Lt; Classes & gt; Com.example.GradeModel & lt; / Square & gt; & Lt; Classes & gt; Com.example.Pupil & lt; / Square & gt; & Lt; Classes & gt; Com.example.PupilCoursework & lt; / Square & gt; & Lt; Classes & gt; Com.example.Report & lt; / Square & gt; & Lt; Classes & gt; Com.example.year & lt; / Square & gt; & Lt; Properties & gt; & Lt; Property Name = "javax.persistence.jdbc.url" value = "jdbc: Derby: D: \ rwdb.db" /> & Lt; Property Name = "javax.persistence.jdbc.user" value = "rwdbuser" /> & Lt; Property Name = "javax.persistence.jdbc.password" value = "rwdbpassword" /> & Lt; Property Name = "javax.persistence.jdbc.driver" value = "org.apache.derby.jdbc.EmbeddedDriver" /> & Lt; Property Name = "eclipselink.jdbc.exclusive-connect.is-lazy" value = "true" /> & Lt; / Properties & gt; & Lt; / Persistence unit & gt; & Lt; / Persistence> By using the
wizard, I created a new database connection in Eclipse which works very well.
When I create tables from the JPA Tools
> institutions,
, the Eclipse table begins ... and continues forever. There is no exception, there is no other message, it is only a barrier to this operation.
I can not even cancel it if I try to do this, then it only "rejects request request" to the item and keeps on moving forward. Conclusion is also not possible because it is waiting for the end of its current work.
.metadata \ .log
There is no new information about this.
Any ideas?
Oh, and I have selected "SQL-script" as output, itemprop = "text">
Classes that should be generated before, must first be listed in persistence.xml
. Once I did this, it worked.
Comments
Post a Comment