I ran some DDL script to setup a complete country table in my database. The country table\'s primary key column contains the corresponding ISO code for every country.
I have one jar library A (or project in eclipse), which has it\'s own persistence unit (META-INF/persistence.xml) and some entity classes, and another project (B) using this one. In project B there is
I want to use GenerationType.IDENTITY for primary keys in my production MySQL system. But for local development and testing, I\'d like to use HSQLDB. The problem is that HSQLDB doesn\'t support Genera
I have an object \"Instance\" with another object \"Course\" inside.When trying to persist a new Instance object, I get the following error if Course is null:
Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call
I have a perfectly working application client deployed to a GlassFish v2 server inside an ear with some EJBs, Entities, etc. I\'m using eclipselink.
i reverse engined entity class but the primary key is not anottaed with GeneratedValue. my table is created on oracle. do i need to add contraint on the table primary key for auto increment?
I h开发者_运维百科ave read the article Locking and Concurrency in Java Persistence 2.0, and run the sample application. But I still can\'t realize the difference between PESSIMISTIC_READ and PESSIMIST
with native SQL I get the database time with a statement like: SELECT CURRENT_TIMESTAMP with JPQL I get the same result with:
How do you enable 开发者_运维技巧debug logging for OpenJPA when running an application in WebLogic 11g?I tried the steps given by Logging JPA SQL with Weblogic 10.3, but no OpenJPA log statements appe