Hello, I have another small obstacle regarding a requirement for avoiding annotations :(
I have a bundle which contains model classes, but I'm not allowed to use annotations as they are to be left agnostic. The obviously way round this is to go back to the old mappings.xml. I have an orm.xml in my META-INF, which karaf picks up ok, but I am getting the following error: org.hibernate.AnnotationException: No identifier specified for entity: <blah> I have an <id> attribute in my orm.xml file, so I'm guessing the .xml file is being ignored. The only other option I can see round this is to wrap each model with an annotated equivalent, but I'd like to try and cut the amount of code needed. Is there an approach to disable annotations and ensure the mapping.xml is the only source used? I remember reading something about aries jpa2 always needing annotations, but I can't find that comment anymore, so I dunno if it's still valid. Stephen -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-JPA-annotationless-mappings-tp4050610.html Sent from the Karaf - User mailing list archive at Nabble.com.
