Hello!

I have tried overriding the schema of persistable classes by following the
guide [1]. However, it seems that package.jdo totally replaces the
annotation metadata, and I get errors on startup due to unrecognized named
queries. However, using the ORM XML metadata does perform the expected
behaviour.

I've checked the DN source code (JDOMetaDataManager.java). It seems that
.jdo files are treated the same as annotations, but .orm differently. The
documentation on the DN site [2] states that if both annotations and JDO
XML metadata are present, XML metadata will be merged on top of annotations
but this doesn't seem to be the case.


Regards,
Willie

[1] https://isis.apache.org/guides/ugodn.html#_ugbtb_decoupling_db-schemas
[2] http://www.datanucleus.org/products/datanucleus/jdo/metadata.html

Reply via email to