Java 类org.hibernate.annotations.Parameter 实例源码

项目:Spring-MVC-Blueprints    文件:Login.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "user"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id", unique = true, nullable = false)
public int getId() {
    return this.id;
}
项目:lams    文件:AnnotationBinder.java   
private static void bindTypeDef(TypeDef defAnn, Mappings mappings) {
    Properties params = new Properties();
    for ( Parameter param : defAnn.parameters() ) {
        params.setProperty( param.name(), param.value() );
    }

    if ( BinderHelper.isEmptyAnnotationValue( defAnn.name() ) && defAnn.defaultForType().equals( void.class ) ) {
        throw new AnnotationException(
                "Either name or defaultForType (or both) attribute should be set in TypeDef having typeClass " +
                        defAnn.typeClass().getName()
        );
    }

    final String typeBindMessageF = "Binding type definition: %s";
    if ( !BinderHelper.isEmptyAnnotationValue( defAnn.name() ) ) {
        if ( LOG.isDebugEnabled() ) {
            LOG.debugf( typeBindMessageF, defAnn.name() );
        }
        mappings.addTypeDef( defAnn.name(), defAnn.typeClass().getName(), params );
    }
    if ( !defAnn.defaultForType().equals( void.class ) ) {
        if ( LOG.isDebugEnabled() ) {
            LOG.debugf( typeBindMessageF, defAnn.defaultForType().getName() );
        }
        mappings.addTypeDef( defAnn.defaultForType().getName(), defAnn.typeClass().getName(), params );
    }

}
项目:lams    文件:SimpleValueBinder.java   
public void setExplicitType(Type typeAnn) {
    if ( typeAnn != null ) {
        explicitType = typeAnn.type();
        typeParameters.clear();
        for ( Parameter param : typeAnn.parameters() ) {
            typeParameters.setProperty( param.name(), param.value() );
        }
    }
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "customerAccount"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
    return this.id;
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "customerAccount"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
    return this.id;
}
项目:Spring-MVC-Blueprints    文件:InvoicedProducts.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "invoice"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id", unique = true, nullable = false)
public Integer getId() {
    return this.id;
}
项目:Spring-MVC-Blueprints    文件:Tblgpa.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "tblstudents"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "studentID", unique = true, nullable = false)
public int getStudentId() {
    return this.studentId;
}
项目:Spring-MVC-Blueprints    文件:Tblgpa.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "tblstudents"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "studentID", unique = true, nullable = false)
public int getStudentId() {
    return this.studentId;
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "customerInfo"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id", unique = true, nullable = false)
public int getId() {
    return this.id;
}
项目:dpCms    文件:Menu.java   
@Id
@Column(name = "ID", unique = true, nullable = false, length = 19)
@GeneratedValue(strategy = GenerationType.TABLE, generator = "table")
@GenericGenerator(name = "table", strategy = "org.hibernate.id.MultipleHiLoPerTableGenerator", parameters = {
        @Parameter(name = "max_lo", value = "5") })//增长级别为5,可根据并发级别适当调整
public Long getId() {
    return this.id;
}
项目:nics-common    文件:UserInfo.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "user"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "user_id", unique = true, nullable = false)
public int getUserId() {
    return this.userId;
}
项目:pedal-dialect    文件:ExoticTypes.java   
@Column(name = "gpa")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.LONG),
        @Parameter(name = ArrayType.EMPTY_IS_NULL, value = "false") })
public List<Long> getGpa() {
    return gpa;
}
项目:pedal-dialect    文件:ExoticTypes.java   
@Column(name = "capitals")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.STRING)})
@CopyEmptyAsNull
public List<String> getCapitals() {
    return capitals;
}
项目:scheduling    文件:TaskData.java   
@Column(name = "EXECUTER_INFORMATION_DATA", length = Integer.MAX_VALUE)
@Cascade(CascadeType.ALL)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @org.hibernate.annotations.Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
@OnDelete(action = OnDeleteAction.CASCADE)
public ExecuterInformationData getExecuterInformationData() {
    return executerInformationData;
}
项目:elide    文件:Person.java   
@Column(name = "address", columnDefinition = "TEXT")
@Type(type = "com.yahoo.elide.datastores.hibernate3.usertypes.JsonType", parameters = {
        @Parameter(name = "class", value = "example.AddressFragment")
})
public AddressFragment getAddress() {
    return address;
}
项目:elide    文件:Person.java   
@Column(name = "address", columnDefinition = "TEXT")
@Type(type = "com.yahoo.elide.datastores.hibernate5.usertypes.JsonType", parameters = {
        @Parameter(name = "class", value = "example.AddressFragment")
})
public AddressFragment getAddress() {
    return address;
}
项目:pedal-loader    文件:ExoticTypes.java   
@Column(name = "gpa")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.LONG),
        @Parameter(name = ArrayType.EMPTY_IS_NULL, value = "false") })
public List<Long> getGpa() {
    return gpa;
}
项目:jeffaschenk-commons    文件:Ancestry.java   
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "ancestrySequenceGenerator")
@GenericGenerator(name = "ancestrySequenceGenerator", strategy = "jeffaschenk.commons.touchpoint.model.dao.support.hibernate.PlatformSequenceGenerator",
        parameters = {@Parameter(name = "sequence", value = "ancestries_seq_id")})
public Integer getId() {
    return super.getId();
}
项目:jeffaschenk-commons    文件:SysEnvironment.java   
/**
 * {@inheritDoc}
 * <p/>
 * Overriding Id to Inject proper Sequence Identity.
 */
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "sysEnvironmentSequenceGenerator")
@GenericGenerator(name = "sysEnvironmentSequenceGenerator", strategy = "jeffaschenk.commons.touchpoint.model.dao.support.hibernate.PlatformSequenceGenerator",
        parameters = {@Parameter(name = "sequence", value = "seq_SysEnvironment")})
public Integer getId() {
    return super.getId();
}
项目:jeffaschenk-commons    文件:Owner.java   
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "ownerSequenceGenerator")
@GenericGenerator(name = "ownerSequenceGenerator", strategy = "jeffaschenk.commons.touchpoint.model.dao.support.hibernate.PlatformSequenceGenerator",
        parameters = {@Parameter(name = "sequence", value = "owners_seq_id")})
public Integer getId() {
    return super.getId();
}
项目:pedal-dialect    文件:ExoticTypes.java   
@Column(name = "gpa")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.LONG),
        @Parameter(name = ArrayType.EMPTY_IS_NULL, value = "false") })
public List<Long> getGpa() {
    return gpa;
}
项目:pedal-dialect    文件:ExoticTypes.java   
@Column(name = "capitals")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.STRING)})
@CopyEmptyAsNull
public List<String> getCapitals() {
    return capitals;
}
项目:pedal-loader    文件:ExoticTypes.java   
@Column(name = "gpa")
@Type(type = "com.eclecticlogic.pedal.provider.hibernate.ListType", parameters = {
        @Parameter(name = ArrayType.DIALECT_PRIMITIVE_NAME, value = PostgresqlArrayPrimitiveName.LONG),
        @Parameter(name = ArrayType.EMPTY_IS_NULL, value = "false") })
public List<Long> getGpa() {
    return gpa;
}
项目:SyncRunner-Pub    文件:SyncTimes.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "channels"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "id_channel", unique = true, nullable = false)
public int getIdChannel() {
    return this.idChannel;
}
项目:pedal-tx    文件:Secundus.java   
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "primus"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "primus", unique = true, nullable = false)
public long getId() {
    return id;
}
项目:yscardII    文件:IntegRecords.java   
@Id
@GeneratedValue(generator = "interChangeGenerator")
@GenericGenerator(name = "interChangeGenerator", strategy = "foreign", 
parameters = { @Parameter(name = "property", value = "integChange") })
public Integer getInteg_r_id() {
    return integ_r_id;
}
项目:screensaver    文件:LibraryContentsVersion.java   
@Id
@org.hibernate.annotations.GenericGenerator(name = "library_contents_version_id_seq", 
                                            strategy = "sequence", 
                                            parameters = { @Parameter(name = "sequence", 
                                                                      value = "library_contents_version_id_seq") })
@GeneratedValue(strategy = GenerationType.SEQUENCE, 
                generator = "library_contents_version_id_seq")
public Integer getLibraryContentsVersionId()
{
  return getEntityId();
}
项目:screensaver    文件:Library.java   
/**
 * Get the id for the screening library.
 *
 * @return the id for the screening library
 */
@Id
@org.hibernate.annotations.GenericGenerator(name = "library_id_seq", strategy = "sequence", parameters = { @Parameter(name = "sequence", value = "library_id_seq") })
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "library_id_seq")
public Integer getLibraryId()
{
  return getEntityId();
}
项目:screensaver    文件:Copy.java   
/**
 * Get the id for the copy.
 * @return the id for the copy
 */
@Id
@org.hibernate.annotations.GenericGenerator(name = "copy_id_seq",
                                            strategy = "sequence",
                                            parameters = { @Parameter(name = "sequence", value = "copy_id_seq") })
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "copy_id_seq")
public Integer getCopyId()
{
  return getEntityId();
}
项目:screensaver    文件:Plate.java   
/**
 * Get the id for the copy info.
 * @return the id for the copy info
 */
@Id
@org.hibernate.annotations.GenericGenerator(
  name="plate_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="plate_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="plate_id_seq")
public Integer getPlateId()
{
  return getEntityId();
}
项目:screensaver    文件:PlateLocation.java   
@Id
@org.hibernate.annotations.GenericGenerator(name = "plate_location_id_seq",
                                            strategy = "sequence",
                                            parameters = { @Parameter(name = "sequence", value = "plate_location_id_seq") })
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "plate_location_id_seq")
public Integer getPlateLocationId()
{
  return getEntityId();
}
项目:screensaver    文件:Activity.java   
/**
 * Get the id for the activity.
 * @return the id for the activity
 */
@Id
@org.hibernate.annotations.GenericGenerator(
  name="activity_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="activity_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="activity_id_seq")
public Integer getActivityId()
{
  return getEntityId(); 
}
项目:screensaver    文件:AssayPlate.java   
@Id
@org.hibernate.annotations.GenericGenerator(name="assay_plate_id_seq",
                                            strategy="sequence",
                                            parameters = { @Parameter(name="sequence", value="assay_plate_id_seq") })
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="assay_plate_id_seq")
public Integer getAssayPlateId()
{
  return getEntityId();
}
项目:screensaver    文件:ChecklistItemEvent.java   
/**
 * Get the id for the checklist item.
 * 
 * @return the id for the checklist item
 */
@Id
@org.hibernate.annotations.GenericGenerator(name = "checklist_item_event_id_seq", strategy = "sequence", parameters = { @Parameter(name = "sequence", value = "checklist_item_event_id_seq") })
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "checklist_item_event_id_seq")
public Integer getChecklistItemEventId()
{
  return getEntityId();
}
项目:screensaver    文件:ScreensaverUser.java   
/**
 * Get the id for the Screensaver user.
 * @return the id for the Screensaver user
 */
@Id
@org.hibernate.annotations.GenericGenerator(
  name="screensaver_user_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="screensaver_user_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="screensaver_user_id_seq")
public Integer getScreensaverUserId()
{
  return getEntityId();
}
项目:screensaver    文件:LabAffiliation.java   
@Id
@org.hibernate.annotations.GenericGenerator(
  name="lab_affiliation_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="lab_affiliation_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="lab_affiliation_id_seq")
public Integer getLabAffiliationId()
{
  return getEntityId();
}
项目:screensaver    文件:ChecklistItem.java   
/**
 * Get the id for the checklist item.
 *
 * @return the id for the checklist item
 */
@Id
@org.hibernate.annotations.GenericGenerator(name = "checklist_item_id_seq", strategy = "sequence", parameters = { @Parameter(name = "sequence", value = "checklist_item_id_seq") })
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "checklist_item_id_seq")
public Integer getChecklistItemId()
{
  return getEntityId();
}
项目:screensaver    文件:CherryPickAssayPlate.java   
/**
 * Get the id for the cherry pick assay plate.
 * @return the id for the cherry pick assay plate
 */
@Id
@org.hibernate.annotations.GenericGenerator(
  name="cherry_pick_assay_plate_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="cherry_pick_assay_plate_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="cherry_pick_assay_plate_id_seq")
public Integer getCherryPickAssayPlateId()
{
  return getEntityId();
}
项目:screensaver    文件:CherryPickRequest.java   
/**
 * Get the id for the cherry pick request.
 * @return the id for the cherry pick request
 */
@Id
@org.hibernate.annotations.GenericGenerator(
  name="cherry_pick_request_id_seq",
  strategy="sequence",
  parameters = {
    @Parameter(name="sequence", value="cherry_pick_request_id_seq"),
    @Parameter(name="parameters", value="start with 10000")
  }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="cherry_pick_request_id_seq")
public Integer getCherryPickRequestId()
{
  return getEntityId();
}
项目:screensaver    文件:LabCherryPick.java   
@Id
@org.hibernate.annotations.GenericGenerator(
  name="lab_cherry_pick_id_seq",
  strategy="sequence",
  parameters = { @Parameter(name="sequence", value="lab_cherry_pick_id_seq") }
)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="lab_cherry_pick_id_seq")
public Integer getLabCherryPickId()
{
  return getEntityId();
}