I did some debugging. EntityMapMergeProcessor#mergeOverride seems to be
the culprit. It is called from
EntityMapLoader#updateFromXML(PersistenceUnitInfo). As this method is
empty (at least in milestone 3) the entities declared in orm.xml will
get lost.
Kind regards,
Frank
Andrus Adamchik sch
On Mar 14, 2008, at 1:06 AM, Borut BolĨina wrote:
Can you please write a tutorial on advanced usage of Cayenne? That
would include patterns and best practices on how to implement and
configure 3-tier architecture without the missing rmi client-server
services.
ROP docs are there... You c
Out of ideas.. What kind of packaging are you using? Is this a JAR, a
WAR, an unpacked folder?
Andrus
On Mar 14, 2008, at 5:38 PM, Frank Schwarz wrote:
Hi Andrus,
unfortunately the problem remains the same. See trace below.
Kind regards,
Frank
*** CayenneAgent starting with arguments: jpa
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:1
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
Hi Andrus,
the complete trace looks like this:
*** CayenneAgent starting...
14.03.2008 10:04:41 org.apache.cayenne.jpa.Provider
createEntityManagerFactory
INFO: Extra PersistenceUnitInfo properties: {}
14.03.2008 10:04:42 org.apache.cayenne.jpa.instrument.InstrumentingUnit
addTransformer
INFO
Hi Frank,
is the application started with cayenne-agent?
Andrus
On Mar 14, 2008, at 11:12 AM, Frank Schwarz wrote:
Hi,
is it possible to declare mappings in a JPA conform orm.xml file
with Cayenne3M3. Unfortunately, I have not been successful so far.
---%<--- META-INF/persistence.xml ---
Hi,
is it possible to declare mappings in a JPA conform orm.xml file with
Cayenne3M3. Unfortunately, I have not been successful so far.
---%<--- META-INF/persistence.xml
http://java.sun.com/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation