@Column(name = DbColumnNames.ENTITY_ID) @DocumentId(name = DbFieldNames.ENTITY_ID) @GeneratedValue(generator = DbSequenceNames.RESOURCE_ENTITY_ID, strategy = GenerationType.SEQUENCE) @Id @Nonnegative @Nullable @Override @SequenceGenerator(allocationSize = 1, name = DbSequenceNames.RESOURCE_ENTITY_ID, sequenceName = DbSequenceNames.RESOURCE_ENTITY_ID) @SortableField(forField = DbColumnNames.ENTITY_ID) public Long getEntityId() { return super.getEntityId(); }
private Annotation getSequenceGenerator(List<Element> elementsForProperty, XMLContext.Default defaults) { for ( Element element : elementsForProperty ) { Element subelement = element != null ? element.element( annotationToXml.get( SequenceGenerator.class ) ) : null; if ( subelement != null ) { return buildSequenceGeneratorAnnotation( subelement ); } } if ( elementsForProperty.size() == 0 && defaults.canUseJavaAnnotations() ) { return getPhysicalAnnotation( SequenceGenerator.class ); } else { return null; } }
private SequenceGenerator getSequenceGenerator(Element tree, XMLContext.Default defaults) { Element element = tree != null ? tree.element( annotationToXml.get( SequenceGenerator.class ) ) : null; if ( element != null ) { return buildSequenceGeneratorAnnotation( element ); } else if ( defaults.canUseJavaAnnotations() ) { return getPhysicalAnnotation( SequenceGenerator.class ); } else { return null; } }
public static SequenceGenerator buildSequenceGeneratorAnnotation(Element element) { if ( element != null ) { AnnotationDescriptor ad = new AnnotationDescriptor( SequenceGenerator.class ); copyStringAttribute( ad, element, "name", false ); copyStringAttribute( ad, element, "sequence-name", false ); copyIntegerAttribute( ad, element, "initial-value" ); copyIntegerAttribute( ad, element, "allocation-size" ); return AnnotationFactory.create( ad ); } else { return null; } }
@Id @SequenceGenerator(name = "ID_SEQ") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ") @Column(name = "ID", nullable = false) public Long getId() { return id; }
/** * The system unique (internal) number of the request. * * @return Returns the number. */ @Column(nullable = false, unique = true, name="request_nr") @SequenceGenerator(name = "seqRequestNumber", sequenceName = "seqRequestNumber") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqRequestNumber") public String getNumber() { return this.number; }
@Id @Column(name = "sampled_features_id", unique = true, nullable = false) @SequenceGenerator(name="sampled_features_id_seq",schema="version30",sequenceName="sampled_features_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="sampled_features_id_seq") public int getSampledFeaturesId() { return this.sampledFeaturesId; }
@Id @Column(name = "related_resource_id", unique = true, nullable = false) @SequenceGenerator(name="related_resource_id_seq",schema="version30",sequenceName="related_resource_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="related_resource_id_seq") public int getRelatedResourceId() { return this.relatedResourceId; }
@Id @Column(name = "log_date_id", unique = true, nullable = false) @SequenceGenerator(name="log_date_id_seq",schema="version30",sequenceName="log_date_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="log_date_id_seq") public int getLogDateId() { return this.logDateId; }
@Id @Column(name = "contributor_id", unique = true, nullable = false) @SequenceGenerator(name="contributor_id_seq",schema="version30",sequenceName="contributor_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="contributor_id_seq") public int getContributorId() { return this.contributorId; }
@Id @Column(name = "material_types_id", unique = true, nullable = false) @SequenceGenerator(name="material_types_id_seq",schema="version30",sequenceName="material_types_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="material_types_id_seq") public int getMaterialTypesId() { return this.materialTypesId; }
@Id @Column(name = "resource_type_id", unique = true, nullable = false) @SequenceGenerator(name="resource_type_id_seq",schema="version30",sequenceName="resource_type_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="resource_type_id_seq") public int getResourceTypeId() { return this.resourceTypeId; }
@Id @Column(name = "curation_id", unique = true, nullable = false) @SequenceGenerator(name="curation_id_seq",schema="version30",sequenceName="curation_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="curation_id_seq") public int getCurationId() { return this.curationId; }
@Id @Column(name = "id", unique = true, nullable = false) @SequenceGenerator(name="prefix_id_seq",schema="version30",sequenceName="prefix_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="prefix_id_seq") public int getId() { return this.id; }
@Id @Column(name = "method_id", unique = true, nullable = false) @SequenceGenerator(name="method_id_seq",schema="version30",sequenceName="method_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="method_id_seq") public int getMethodId() { return this.methodId; }
@Id @Column(name = "registrantid", unique = true, nullable = false) @SequenceGenerator(name="registrant_registrantid_seq",schema="version30",sequenceName="registrant_registrantid_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="registrant_registrantid_seq") public int getRegistrantid() { return this.registrantid; }
@Id @Column(name = "classifications_id", unique = true, nullable = false) @SequenceGenerator(name="classifications_id_seq",schema="version30",sequenceName="classifications_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="classifications_id_seq") public int getClassificationsId() { return this.classificationsId; }
@Id @Column(name = "resource_date_id", unique = true, nullable = false) @SequenceGenerator(name="resource_date_id_seq",schema="version30",sequenceName="resource_date_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="resource_date_id_seq") public int getResourceDateId() { return this.resourceDateId; }
@Id @Column(name = "alternate_identifiers_id", unique = true, nullable = false) @SequenceGenerator(name="alternate_identifiers_id_seq",schema="version30",sequenceName="alternate_identifiers_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="alternate_identifiers_id_seq") public int getAlternateIdentifiersId() { return this.alternateIdentifiersId; }
@Id @Column(name = "location_id", unique = true, nullable = false) @SequenceGenerator(name="location_id_seq",schema="version30",sequenceName="location_id_seq", allocationSize=1) @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="location_id_seq") public int getLocationId() { return this.locationId; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "track_sq") @Column(name = "MediaTypeId", precision = 20, nullable = false) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "track_sq") @Column(name = "TrackId", precision = 20, nullable = false) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "album_sq") @Column(name = "AlbumId", precision = 20, nullable = false) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "artist_sq") @Column(name = "ArtistId", nullable = false, precision = 20) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "employee_sq") @Column(name = "EmployeeId", nullable = false, precision = 20) public Long getId() { return m_id; }
@Id @SequenceGenerator(name = "sq", sequenceName = "genre_sq") @Column(name = "GenreId", precision = 20, nullable = false) @Override public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "invoice_sq") @Column(name = "InvoiceId", nullable = false, precision = 20) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "customer_sq") @Column(name = "CustomerId", nullable = false, precision = 20) public Long getId() { return m_id; }
@Override @Id @SequenceGenerator(name = "sq", sequenceName = "invoiceline_sq") @Column(name = "InvoiceLineId", nullable = false, precision = 20) public Long getId() { return m_id; }
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "clients_seq") @SequenceGenerator(name = "clients_seq", sequenceName = "clients_seq", allocationSize = 1) public Long getId() { return this.id; }
@Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "users_seq") @SequenceGenerator(name = "users_seq", sequenceName = "users_seq", allocationSize = 1) public Long getId() { return this.id; }
@Id @Column(name = "id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "s_dual_subtitle_config_id") @SequenceGenerator(name = "s_dual_subtitle_config_id", sequenceName = "s_dual_subtitle_config_id", allocationSize = 1) public int getId() { return this.id; }
@Id @Column(name = "id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "s_subtitle_profile_id") @SequenceGenerator(name = "s_subtitle_profile_id", sequenceName = "s_subtitle_profile_id", allocationSize = 1) public int getId() { return this.id; }
@Id @Column(name = "id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "s_merge_histo_id") @SequenceGenerator(name = "s_merge_histo_id", sequenceName = "s_merge_histo_id", allocationSize = 1) public int getId() { return this.id; }
@Id @Column(name = "id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "s_authorities_id") @SequenceGenerator(name = "s_authorities_id", sequenceName = "s_authorities_id", allocationSize = 1) public int getId() { return this.id; }
@Id @Column(name = "id", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "s_account_id") @SequenceGenerator(name = "s_account_id", sequenceName = "s_account_id", allocationSize = 1) public int getId() { return this.id; }
@Id @Column(name = "STUDENT_ID", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_STUDENT_ID") @SequenceGenerator(name = "SEQ_STUDENT_ID", sequenceName = "SEQ_STUDENT_ID", allocationSize=1, initialValue=1) //@org.hibernate.annotations.GenericGenerator(name="SEQ_STUDENT_ID", strategy = "sequence", parameters = { @org.hibernate.annotations.Parameter(name="sequence", value="SEQ_STUDENT_ID") } ) public Integer getId() { return this.id; }
/** * INDEX_TEST1_IDを返します。 * * @return INDEX_TEST1_ID */ @Id @GeneratedValue(generator = "INDEX_TEST1_ID_SEQ", strategy = GenerationType.AUTO) @SequenceGenerator(name = "INDEX_TEST1_ID_SEQ", sequenceName = "INDEX_TEST1_ID_SEQ", initialValue = 1, allocationSize = 1) @Column(name = "INDEX_TEST1_ID", precision = 18, nullable = false, unique = true) public Long getIndexTest1Id() { return indexTest1Id; }
@Id @Column(name = "CLASSES_ID", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_CLASSES_ID") @SequenceGenerator(name = "SEQ_CLASSES_ID", sequenceName = "SEQ_CLASSES_ID", allocationSize=1, initialValue=1) public Integer getId() { return this.id; }