1 19 20 package org.netbeans.modules.j2ee.jpa.model; 21 22 import java.util.Arrays ; 23 import java.util.Set ; 24 import java.util.TreeSet ; 25 26 31 public class JPAAnnotations { 32 33 public static final String ENTITY = "javax.persistence.Entity"; public static final String MAPPED_SUPERCLASS = "javax.persistence.MappedSuperclass"; public static final String EMBEDDABLE = "javax.persistence.Embeddable"; public static final String ID_CLASS = "javax.persistence.IdClass"; public static final String SEQUENCE_GENERATOR = "javax.persistence.SequenceGenerator"; public static final String TABLE_GENERATOR = "javax.persistence.TableGenerator"; public static final String INHERITANCE = "javax.persistence.Inheritance"; public static final String DISCRIMINATOR_COLUMN = "javax.persistence.DiscriminatorColumn"; public static final String DISCRIMINATOR_VALUE = "javax.persistence.DiscriminatorValue"; public static final String TABLE = "javax.persistence.Table"; public static final String SECONDARY_TABLE = "javax.persistence.SecondaryTable"; public static final String SECONDARY_TABLES = "javax.persistence.SecondaryTables"; public static final String PK_JOIN_COLUMN = "javax.persistence.PrimaryKeyJoinColumn"; public static final String PK_JOIN_COLUMNS = "javax.persistence.PrimaryKeyJoinColumns"; public static final String ATTRIBUTE_OVERRIDE = "javax.persistence.AttributeOverride"; public static final String ATTRIBUTE_OVERRIDES = "javax.persistence.AttributeOverrides"; public static final String ASSOCIATION_OVERRIDE = "javax.persistence.AssociationOverride"; public static final String ASSOCIATION_OVERRIDES = "javax.persistence.AssociationOverrides"; public static final String NAMED_QUERY = "javax.persistence.NamedQuery"; public static final String NAMED_NATIVE_QUERY = "javax.persistence.NamedNativeQuery"; 55 public static final String ID = "javax.persistence.Id"; public static final String EMBEDDED_ID = "javax.persistence.EmbeddedId"; public static final String EMBEDDED = "javax.persistence.Embedded"; public static final String TRANSIENT = "javax.persistence.Transient"; public static final String VERSION = "javax.persistence.Version"; public static final String BASIC = "javax.persistence.Basic"; public static final String ENUMERATED = "javax.persistence.Enumerated"; public static final String GENERATED_VALUE = "javax.persistence.GeneratedValue"; public static final String ONE_TO_ONE = "javax.persistence.OneToOne"; public static final String ONE_TO_MANY = "javax.persistence.OneToMany"; public static final String MANY_TO_ONE = "javax.persistence.ManyToOne"; public static final String MANY_TO_MANY = "javax.persistence.ManyToMany"; public static final String MAP_KEY = "javax.persistence.MapKey"; public static final String LOB = "javax.persistence.Lob"; public static final String TEMPORAL = "javax.persistence.Temporal"; public static final String COLUMN = "javax.persistence.Column"; public static final String JOIN_COLUMN = "javax.persistence.JoinColumn"; public static final String JOIN_COLUMNS = "javax.persistence.JoinColumns"; public static final String JOIN_TABLE = "javax.persistence.JoinTable"; 76 public static final Set <String > MEMBER_LEVEL = new TreeSet <String >(Arrays.asList( 77 ID, EMBEDDED_ID, EMBEDDED, TRANSIENT, VERSION, BASIC, ENUMERATED, 78 GENERATED_VALUE,ONE_TO_ONE, ONE_TO_MANY, MANY_TO_ONE, MANY_TO_MANY, 79 MAP_KEY, LOB, TEMPORAL, COLUMN, JOIN_COLUMN, JOIN_COLUMNS,JOIN_TABLE)); 80 81 public static final String NULLABLE_ATTR = "nullable"; 85 public static final String VALUE_ATTR = "value"; 88 public static final String NAME_ATTR = "name"; 90 91 } 93 | Popular Tags |