openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vinay.venkat" <>
Subject same class in the two mappings one lazy load and the other one eager load
Date Tue, 01 Sep 2009 19:40:55 GMT

I'm using OpenJpa 1.0.1. I have a class thats used in two mapping files. the
first mapping file marks the relations in the class as transient. the other
mapping file loads all the relations eagerly. these two mapping files are in
2 different persistence units and the alias is different in both the mapping

This is done because there will be cases when i do not want the relations to
be loaded and cases where they need to be loaded eagerly

from what i have seen, opnjpa registers the class using the alias specfied
in the first PU and ignores the other one.  when i try to use the other
alias, it gives me this error.

Could not locate metadata for the class using alias "MyClass". This could
mean that the OpenJPA enhancer or load-time weaver was not run on the type
whose alias is "MyClass". 

Wanted to check if this is possible in openjpa 

any help is really appreciated

View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message