From d88af9faaf114aba1df5d6478164d749f80a8a2d Mon Sep 17 00:00:00 2001 From: "A. Abram White" Date: Fri, 19 Jan 2007 19:59:37 +0000 Subject: [PATCH] Fix bug in serialization of table element in JPA XML metadata. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@497929 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/jdbc/XMLPersistenceMappingSerializer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingSerializer.java b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingSerializer.java index 500b76a53..6dcb4b14f 100644 --- a/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingSerializer.java +++ b/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/XMLPersistenceMappingSerializer.java @@ -228,7 +228,7 @@ public class XMLPersistenceMappingSerializer (table); boolean print = (cols != null && cols.size() > 0) || - (uniques !=null || uniques.length > 0); + (uniques != null && uniques.length > 0); if (table != null && (defaultName == null || !defaultName.equals(table))) { print = true;