"reference" is an element attribute, not property.

This commit is contained in:
Heng Sin Low 2010-12-24 10:31:00 +08:00
parent 7623372601
commit 7d4f9afb08
1 changed files with 11 additions and 11 deletions

View File

@ -55,17 +55,17 @@ public class ReferenceUtils {
public static boolean isIDLookup(Element element)
{
return "id".equals(element.properties.get("reference"));
return "id".equals(element.attributes.getValue("reference"));
}
public static boolean isUUIDLookup(Element element)
{
return "uuid".equals(element.properties.get("reference"));
return "uuid".equals(element.attributes.getValue("reference"));
}
public static boolean isTableLookup(Element element)
{
return "table".equals(element.properties.get("reference"));
return "table".equals(element.attributes.getValue("reference"));
}
public static String getTableReference(String tableName, String searchColumn, int id, AttributesImpl atts)