Internal Website Search

1-14 of 14 results

javax.persistence.PersistenceUnits

JPA Annotation PersistenceUnits Target: TYPE Implemented Interfaces: Annotation Declares one or more PersistenceUnit annotations. Since: JPA 1.0 Public Annotation Attributes PersistenceUnit [] value default null (Required) One or more PersistenceUnit annotations. Since: JPA 1.0

javax.persistence.PersistenceUnits.value

JPA Annotation Attribute in javax.persistence. PersistenceUnits PersistenceUnit [] value default null (Required) One or more PersistenceUnit annotations. Since: JPA 1.0

javax.persistence.PersistenceUnit

JPA Annotation PersistenceUnit Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Expresses a dependency on an EntityManagerFactory and its associated persistence unit. Since: JPA 1.0 Public Annotation Attributes String name default "" (Optional) The name by which the entity manager

javax.persistence.PersistenceUnit.unitName

JPA Annotation Attribute in javax.persistence. PersistenceUnit String unitName default "" (Optional) The name of the persistence unit as defined in the persistence.xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Since: JPA 1.0

javax.persistence.PersistenceUnit.name

JPA Annotation Attribute in javax.persistence. PersistenceUnit String name default "" (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Since: JPA 1.0

@OneToMany(fetch = FetchType.LAZY) list is always null

, because all is OK when using EAGER loading, but when I use LAZY with PersistenceUnit (not  ... LAZY with PersistenceUnit (not EntityManagerFactory), it fails. The no-detach option is currently

JBoss 7 startup fails

/unavailable dependencies" = ["jboss. persistenceunit .\"Guestbook_Jee.war#GuestbookPU\" missing [ jboss ... :" = {"Operation step-2" = {"Services with missing/unavailable dependencies" = ["jboss. persistenceunit

Java 8 Enhancer Problem

.objectdb.JEnhancerAgent.transform(JEnhancerAgent.java:152) at org.springframework.orm.jpa. persistenceunit

Cannot save or update entity on Spring App

{ // Injected database connection: @ PersistenceUnit (unitName="pu") EntityManagerFactory

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: Here is the stack trace I get: Caused by: java.lang.AbstractMethodError: org.springframework.orm.jpa. persistenceunit .SpringPersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence

Query results are not up to date for entities, not primitives

(" PersistenceUnit "); EntityManager em2 = emf   .createEntityManager(); EntityTransaction tr = em2  

Spring LTW Problem

.java:153) at org.springframework.orm.jpa. persistenceunit .ClassFileTransformerAdapter.transform

Integration

specified at org.springframework.orm.jpa. persistenceunit .SpringPersistenceUnitInfo.addTransformer

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

) @TransactionAttribute(TransactionAttributeType.REQUIRED) public class GuestDao { @ PersistenceUnit (unitName