-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I wrote a stateless EJB method allowing to get an entity in "read-only" mode.
The way to do this is to get the entity with the EntityManager then detach it (using the JPA 2.0 EntityManager).
My code is the following:
@PersistenceContext
private EntityManager entityManager;
public T getEntity(int…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using the AndroMDA plugin for maven to generate code from an uml diagram made in MagicDraw.
When the code is generated, AndroMDA desings the JPA annotation for the persitence layer. I think that at the compilation process AndroMDA uses Naming Strategies to determine the Table and Column names…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to setup my database with initial data programmatically. I want to populate my database for development runs, not for testing runs (it's easy). The product is built on top of Spring and JPA/Hibernate.
Developer checks out the project
Developer runs command/script to setup database with initial…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am getting this error when I am running my eclipselink project.
[EL Warning]: 2008.12.05 11:47:08.056--java.lang.NoClassDefFoundError: org/jboss/resource/adapter/jdbc/ValidConnectionChecker was thrown on attempt of PersistenceLoadProcessor to load class com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So, I've got a DAO that I used to load and save my domain objects using JPA. I finally managed to get the transaction stuff working (with a bunch of help from the folks here...), now I've got another issue.
In my test case, I call my DAO to load a domain object with a given id, check that it got…
>>> More