Hi Andrus,
unfortunately the problem remains the same. See trace below.
Kind regards,
Frank
*** CayenneAgent starting with arguments: jpa-eager-load
14.03.2008 16:33:14 org.apache.cayenne.jpa.Provider
createEntityManagerFactory
INFO: Extra PersistenceUnitInfo properties: {}
14.03.2008 16:33:14 org.apache.cayenne.jpa.instrument.InstrumentingUnit
addTransformer
INFO: *** Adding transformer:
org.apache.cayenne.jpa.instrument.UnitClassTransforme..de3f2d
14.03.2008 16:33:14 org.apache.cayenne.access.QueryLogger logPoolCreated
INFO: Created connection pool: jdbc:h2:tcp://localhost:9092/sample
Driver class: org.h2.Driver
Min. connections in the pool: 1
Max. connections in the pool: 5
14.03.2008 16:33:14 org.apache.cayenne.jpa.Provider
createEntityManagerFactory
INFO: Extra PersistenceUnitInfo properties: {}
14.03.2008 16:33:14 org.apache.cayenne.jpa.instrument.InstrumentingUnit
addTransformer
INFO: *** Adding transformer:
org.apache.cayenne.jpa.instrument.UnitClassTransforme..feca64
14.03.2008 16:33:14 org.apache.cayenne.access.QueryLogger logPoolCreated
INFO: Created connection pool: jdbc:h2:tcp://localhost:9092/sample
Driver class: org.h2.Driver
Min. connections in the pool: 1
Max. connections in the pool: 5
*** insert ***
14.03.2008 16:33:14 org.apache.cayenne.access.QueryLogger
logBeginTransaction
INFO: --- transaction started.
*** finished ***
Exception in thread "main" java.lang.IllegalArgumentException: entity
must be Persistent: oopex.cayenne3.jpax.usecases.model.Person
at
org.apache.cayenne.jpa.TypeCheckingEntityManager.checkEntityType(TypeCheckingEntityManager.java:64)
at
org.apache.cayenne.jpa.TypeCheckingEntityManager.persist(TypeCheckingEntityManager.java:150)
at oopex.cayenne3.jpax.usecases.HalloWorldMain.insert(Unknown
Source)
at oopex.cayenne3.jpax.usecases.HalloWorldMain.main(Unknown Source)
Andrus Adamchik schrieb:
> To ensure that the agent discovers all classes on startup, pass
> 'jpa-eager-load' parameter to the agent:
>
> -javaagent:/path/cayenne-agent-3.0M3.jar=jpa-eager-load
>
> This makes startup slower, but all the entity classes will be
> guaranteed enhanced. This is missing from the docs, let me add it now.
>
> Andrus
>
> On Mar 14, 2008, at 4:45 PM, Frank Schwarz wrote:
>
This archive was generated by hypermail 2.0.0 : Fri Mar 14 2008 - 11:38:53 EDT