blob: 83aab6414a5b48e92548d87236c86b81c0e4e41e [file] [log] [blame]
<%@ jet package="org.eclipse.jst.j2ee.ejb.gmf.templates.entity" class="FieldsGenerator" imports="java.util.* org.eclipse.jst.j2ee.ejb.annotation.internal.model.*"%>
<% IContainerManagedEntityBean cmp = (IContainerManagedEntityBean)argument;
boolean isCMP = true;
String primaryKeyType = cmp.getPrimaryKeyClass();
List attributes = cmp.getAttributes();
List keyAttributes = cmp.getKeyAttributes();
int pkCount=keyAttributes.size();
boolean isComposite = keyAttributes.size() > 1;
boolean createCompositeKey = false;
String primaryKeyField = ( (CMPAttributeDelegate)keyAttributes.get(0)).getName();
%>