Java 类javax.persistence.SequenceGenerator 实例源码

项目:sdcct    文件:SdcctResourceImpl.java   
@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();
}
项目:lams    文件:JPAOverriddenAnnotationReader.java   
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;
    }
}
项目:lams    文件:JPAOverriddenAnnotationReader.java   
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;
    }
}
项目:lams    文件:JPAOverriddenAnnotationReader.java   
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;
    }
}
项目:tianti    文件:OracleLongEntity.java   
@Id
@SequenceGenerator(name = "ID_SEQ")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
@Column(name = "ID", nullable = false)
public Long getId() {
    return id;
}
项目:myWMS    文件:Request.java   
/**
 * 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;
}
项目:igsn30    文件:SampledFeatures.java   
@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;
}
项目:igsn30    文件:RelatedResources.java   
@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;
}
项目:igsn30    文件:LogDate.java   
@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;
}
项目:igsn30    文件:Contributors.java   
@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;
}
项目:igsn30    文件:MaterialTypes.java   
@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;
}
项目:igsn30    文件:ResourceTypes.java   
@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;
}
项目:igsn30    文件:CurationDetails.java   
@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;
}
项目:igsn30    文件:Prefix.java   
@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;
}
项目:igsn30    文件:Method.java   
@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;
}
项目:igsn30    文件:Registrant.java   
@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;
}
项目:igsn30    文件:Classifications.java   
@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;
}
项目:igsn30    文件:ResourceDate.java   
@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;
}
项目:igsn30    文件:AlternateIdentifiers.java   
@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;
}
项目:igsn30    文件:Location.java   
@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;
}
项目:domui    文件:MediaType.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "track_sq")
@Column(name = "MediaTypeId", precision = 20, nullable = false)
public Long getId() {
    return m_id;
}
项目:domui    文件:Track.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "track_sq")
@Column(name = "TrackId", precision = 20, nullable = false)
public Long getId() {
    return m_id;
}
项目:domui    文件:Album.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "album_sq")
@Column(name = "AlbumId", precision = 20, nullable = false)
public Long getId() {
    return m_id;
}
项目:domui    文件:Artist.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "artist_sq")
@Column(name = "ArtistId", nullable = false, precision = 20)
public Long getId() {
    return m_id;
}
项目:domui    文件:Employee.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "employee_sq")
@Column(name = "EmployeeId", nullable = false, precision = 20)
public Long getId() {
    return m_id;
}
项目:domui    文件:Genre.java   
@Id
@SequenceGenerator(name = "sq", sequenceName = "genre_sq")
@Column(name = "GenreId", precision = 20, nullable = false)
@Override
public Long getId() {
    return m_id;
}
项目:domui    文件:Invoice.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "invoice_sq")
@Column(name = "InvoiceId", nullable = false, precision = 20)
public Long getId() {
    return m_id;
}
项目:domui    文件:Customer.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "customer_sq")
@Column(name = "CustomerId", nullable = false, precision = 20)
public Long getId() {
    return m_id;
}
项目:domui    文件:InvoiceLine.java   
@Override
@Id
@SequenceGenerator(name = "sq", sequenceName = "invoiceline_sq")
@Column(name = "InvoiceLineId", nullable = false, precision = 20)
public Long getId() {
    return m_id;
}
项目:oauth2    文件:Client.java   
@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;
 }
项目:oauth2    文件:User.java   
@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;
 }
项目:submerge    文件:DualSubtitleConfig.java   
@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;
}
项目:submerge    文件:SubtitleProfile.java   
@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;
}
项目:submerge    文件:MergeHisto.java   
@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;
}
项目:submerge    文件:Authorities.java   
@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;
}
项目:submerge    文件:User.java   
@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;
}
项目:Cerberus    文件:User.java   
@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;
 }
项目:sample-java-spring-genericdao    文件:Student.java   
@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;
}
项目:gsp-dba-maven-plugin    文件:IndexTest1.java   
/**
 * 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;
}
项目:sample-java-spring-genericdao    文件:Classes.java   
@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;
}