openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r835285 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Date Thu, 12 Nov 2009 07:46:33 GMT
Author: ppoddar
Date: Thu Nov 12 07:46:32 2009
New Revision: 835285

URL: http://svn.apache.org/viewvc?rev=835285&view=rev
Log:
Generate MappedSuperClass through reverse mapping tool.

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java?rev=835285&r1=835284&r2=835285&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataSerializer.java
Thu Nov 12 07:46:32 2009
@@ -845,6 +845,8 @@
      * Return the MetaDataTag for the given class meta data.
      */
     private static MetaDataTag getEntityTag(ClassMetaData meta) {
+        if (meta.isAbstract())
+            return MetaDataTag.MAPPED_SUPERCLASS;
         // @Embeddable classes can't declare Id fields
         if (meta.isEmbeddedOnly() && meta.getPrimaryKeyFields().length == 0)
             return MetaDataTag.EMBEDDABLE;



Mime
View raw message