@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; }
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 ); } }
public void setExplicitType(Type typeAnn) { if ( typeAnn != null ) { explicitType = typeAnn.type(); typeParameters.clear(); for ( Parameter param : typeAnn.parameters() ) { typeParameters.setProperty( param.name(), param.value() ); } } }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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; }
@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(); }
/** * {@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(); }
@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(); }
@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; }
@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; }
@Id @GeneratedValue(generator = "interChangeGenerator") @GenericGenerator(name = "interChangeGenerator", strategy = "foreign", parameters = { @Parameter(name = "property", value = "integChange") }) public Integer getInteg_r_id() { return integ_r_id; }
@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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
@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(); }
/** * 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(); }
@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(); }
/** * 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(); }
/** * 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(); }
@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(); }
/** * 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(); }
/** * 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(); }
/** * 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(); }
@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(); }