I am combining two concerns into one post here. Let me provide a context first. I am creating a simple string localization package which contains a singe JPA entity, LocalizedText. This package is subsequently being consumed consumed by other products which have JPA entities of their own. I am using JPA 1.1.0 and as part of my component release, I run the PCEnhancer ant task to enhance LocalizedText entity. This becomes part of a jar file which is distributable. I distribute also a persistence.xml file which contains database information and the entity class name. Consuming apps are expected to place this file in the classpath.
One group has reported that if they run enhancement on their JPA entities, my component gives the error: "Entity LocalizedText is not enhanced". The error does not show up if they dont run the enhancer. I am not sure where the problem is. I am positive I enhance my entity. The list of the JPA entities used by the application are enumerated in a orm.xml file and it has its own persistence,xml file which is independent of my component's.
At the end of this long post, my doubt is - am I missing something? Is there any other build task I am expected to do before release?
Any pointers to further analysis would be much appreciated as I am pretty much clueless on whats happening here.