I\'m using Spring/JPA2/hibernate with this code: class A { @Autowired B b; @RequestMapping(\"/test\") public void test(final HttpServletRequest r1, HttpServletResponse r2) throws ... {
I have a problem when I try to persist objects using multiple threads. Details : Suppose I have an object PaymentOrder which has a list of PaymentGroup (One to Many relationship) and PaymentGroup co
My cache usage on entity Foo looked like this @Entity class Foo { @ManyToOne(fetch = LAZY) @Cache(usage = org.hibernate.annotations.CacheConcurrencyStrategy.NONSTRIC开发者_JAVA百科T_READ_WRITE)
Environment: JPA 2.0, Hibernate 3.6, in a war file (with jsf 2.0, on jboss 6, etc). I want update schema by adding Annotated classes to an existing Persistence unit in JPA with hibernate. this is what
In my JSF2-JPA2-Spring3 project, I can insert new entities but can\'t remove entities. This is the error message: java.lang.IllegalArgumentException: Removing a detached instance entity.Entity#8
I build an java based app. using hibernate JPA, spring and h2database. I using h2database in memory mode, here is the jdbc properties:
Background I recently started a new Java EE 6 object, using JBoss and Hibernate. From earlier projects, I have experience with Glassfish using Eclipselink as JPA provider.
@ManyToOne(fetch = LAZY) @JoinColumn(name = COL_GROUP_ID, nullable = false, insertable = false, updatable = false, referencedColumnName = COL_ID)
I am using JPA 2.0. (EclipseLink 2.0.2) If an entity contains relations, for example: @OneToMany(cascade = CascadeType.ALL, mappedBy = \"userId\")
I have a maven-built CDI-based Java SE app, which has a core module, and other modules. Core has the persistence.xml and some entities.