org.hibernate.annotations.Parameter Java Examples

The following examples show how to use org.hibernate.annotations.Parameter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Capability.java    From KITE with Apache License 2.0 5 votes vote down vote up
@Id

  @GeneratedValue(generator = Capability.TABLE_NAME)
  @GenericGenerator(name = Capability.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
      @Parameter(name = "prefix", value = "CAPA")
  })
  public String getId() {
    return this.id;
  }
 
Example #2
Source File: Video.java    From TinyMooc with Apache License 2.0 5 votes vote down vote up
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "resource"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "RESOURCE_ID", unique = true, nullable = false, length = 32)
public String getResourceId() {
    return this.resourceId;
}
 
Example #3
Source File: Link.java    From TinyMooc with Apache License 2.0 5 votes vote down vote up
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "resource"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "RESOURCE_ID", unique = true, nullable = false, length = 32)
public String getResourceId() {
    return this.resourceId;
}
 
Example #4
Source File: ImageText.java    From TinyMooc with Apache License 2.0 5 votes vote down vote up
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "resource"))
@Id
@GeneratedValue(generator = "generator")
@Column(name = "RESOURCE_ID", unique = true, nullable = false, length = 32)
public String getResourceId() {
    return this.resourceId;
}
 
Example #5
Source File: TaskData.java    From scheduling with GNU Affero General Public License v3.0 5 votes vote down vote up
@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;
}
 
Example #6
Source File: Menu.java    From dpCms with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example #7
Source File: AgeGroups.java    From pikatimer with GNU General Public License v3.0 5 votes vote down vote up
@Id
   @GenericGenerator(name = "ag_generator", strategy = "foreign", 
parameters = @Parameter(name = "property", value = "race"))
   @GeneratedValue(generator = "ag_generator")
   @Column(name = "race_id", unique = true, nullable = false)
   public Integer getRaceID() {
       return raceID; 
   }
 
Example #8
Source File: RaceAwards.java    From pikatimer with GNU General Public License v3.0 5 votes vote down vote up
@Id
   @GenericGenerator(name = "race_awards_generator", strategy = "foreign", 
parameters = @Parameter(name = "property", value = "race"))
   @GeneratedValue(generator = "race_awards_generator")
   @Column(name = "race_id", unique = true, nullable = false)
   public Integer getRaceID() {
       return raceID; 
   }
 
Example #9
Source File: Login.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #10
Source File: Tblgpa.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #11
Source File: Tblgpa.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #12
Source File: Login.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #13
Source File: InvoicedProducts.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #14
Source File: InvoicedProducts.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #15
Source File: Paas.java    From KITE with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the id.
 *
 * @return the id
 */
@Id
@GeneratedValue (generator = Paas.TABLE_NAME)
@GenericGenerator (name = Paas.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
    @Parameter (name = "prefix", value = "PAAS")})
public String getId() {
  return this.id;
}
 
Example #16
Source File: BrowserSpecs.java    From KITE with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the id.
 *
 * @return the id
 */
@Id
@GeneratedValue(generator = BrowserSpecs.TABLE_NAME)
@GenericGenerator(name = BrowserSpecs.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
    @Parameter(name = "prefix", value = "BROS")
})
public String getId() {
  return this.id;
}
 
Example #17
Source File: MediaFile.java    From KITE with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the id.
 *
 * @return the id
 */
@Id
// @GeneratedValue(generator = "uuid")
// @GenericGenerator(name = "uuid", strategy = "uuid2")
@GeneratedValue (generator = MediaFile.TABLE_NAME)
@GenericGenerator (name = MediaFile.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
  @Parameter (name = "prefix", value = "MEDI")
})
public String getId() {
  return this.id;
}
 
Example #18
Source File: TestConfig.java    From KITE with Apache License 2.0 5 votes vote down vote up
/**
 * Gets id.
 *
 * @return the id
 */
@Id
@GeneratedValue(generator = TestConfig.TABLE_NAME)
@GenericGenerator(name = TestConfig.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
  @Parameter(name = "prefix", value = "TEST")})
public String getId() {
  return this.id;
}
 
Example #19
Source File: Tuple.java    From KITE with Apache License 2.0 5 votes vote down vote up
/**
 * Gets the id.
 *
 * @return the id
 */
@Id
@GeneratedValue(generator = Tuple.TABLE_NAME)
@GenericGenerator(name = Tuple.TABLE_NAME, strategy = "io.cosmosoftware.kite.dao.KiteIdGenerator", parameters = {
  @Parameter(name = "prefix", value = "TUPL")})
public String getId() {
  return this.id;
}
 
Example #20
Source File: Login.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #21
Source File: Login.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #22
Source File: Login.java    From Spring-MVC-Blueprints with MIT License 5 votes vote down vote up
@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;
}
 
Example #23
Source File: SimpleValueBinder.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
public void setExplicitType(Type typeAnn) {
	if ( typeAnn != null ) {
		explicitType = typeAnn.type();
		typeParameters.clear();
		for ( Parameter param : typeAnn.parameters() ) {
			typeParameters.setProperty( param.name(), param.value() );
		}
	}
}
 
Example #24
Source File: NodeSourceData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public List<Serializable> getInfrastructureParameters() {
    return infrastructureParameters;
}
 
Example #25
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(name = "USAGE_INFO", length = Integer.MAX_VALUE, nullable = true)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public Map<String, String> getUsageInfo() {
    return usageInfo;
}
 
Example #26
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public String[] getJmxUrls() {
    return jmxUrls;
}
 
Example #27
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public NodeState getState() {
    return state;
}
 
Example #28
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public Permission getUserPermission() {
    return userPermission;
}
 
Example #29
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public Client getProvider() {
    return provider;
}
 
Example #30
Source File: RMNodeData.java    From scheduling with GNU Affero General Public License v3.0 4 votes vote down vote up
@Column(length = Integer.MAX_VALUE)
@Type(type = "org.hibernate.type.SerializableToBlobType", parameters = @Parameter(name = SerializableToBlobType.CLASS_NAME, value = "java.lang.Object"))
public Client getOwner() {
    return owner;
}