openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r835293 - /openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java
Date Thu, 12 Nov 2009 08:12:44 GMT
Author: ppoddar
Date: Thu Nov 12 08:12:40 2009
New Revision: 835293

URL: http://svn.apache.org/viewvc?rev=835293&view=rev
Log:
OPENJPA-1047: Prohibit Table annotation or XML descriptor element for MappedSuperclass. 

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

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java?rev=835293&r1=835292&r2=835293&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/AnnotationPersistenceMappingParser.java
Thu Nov 12 08:12:40 2009
@@ -533,6 +533,8 @@
      * Set class table.
      */
     private void parseTable(ClassMapping cm, Table table) {
+        if (cm.isAbstract())
+            throw new UserException(_loc.get("table-not-allowed", cm));
         String tableName = toTableName(table.schema(), table.name(),
             DBDictionary.DBIdentifiers.TABLE_SCHEMA, DBDictionary.DBIdentifiers.TABLE_NAME);
         if (tableName != null) {



Mime
View raw message