| Summary: | EclipseLink should insert new rows as necessary into empty @TableGenerator-specified tables | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Laird Nelson <ljnelson> |
| Component: | Eclipselink | Assignee: | Project Inbox <eclipselink.orm-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | andrei.ilitchev, onacit |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Laird Nelson
Workaround 1. Use persistence unit property "eclipselink.ddl-generation" with "create-tables" value. Eclipselink attempts to create all mapped tables (pre-existing tables kept). Then Eclipselink attempts to create sequence table(s) (pre-existing tables kept), then creates sequences in the db and populates sequence table(s). Workaround 2. EntityManager em = emf.createEntityManager(); ServerSession ss = em.unwrap(ServerSession.class); (new SchemaManager(ss)).createSequences(); em.close(); Eclipselink attempts to create sequence table(s) (pre-existing tables kept), then creates sequences in the db and populates sequence table(s). I'm still facing this problem. Is this normal or unnecessary by the spec? The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |