org.hibernate.annotations.Entity.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(278)

本文整理了Java中org.hibernate.annotations.Entity.<init>()方法的一些代码示例,展示了Entity.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.<init>()方法的具体详情如下:
包路径:org.hibernate.annotations.Entity
类名称:Entity
方法名:<init>

Entity.<init>介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

/**
 * @author Emmanuel Bernard
 */
@Entity
@Table(name = "sport_car")
@org.hibernate.annotations.Entity(polymorphism = PolymorphismType.EXPLICIT) //raise a warn
public class SportCar extends Car {
}

代码示例来源:origin: hibernate/hibernate-orm

/**
 * @author Hardy Ferentschik
 */
@Entity
public class Boy {
  @Id
  @GeneratedValue
  private long id;

  private Set<String> nickNames;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public Set<String> getNickNames() {
    return nickNames;
  }

  public void setNickNames(Set<String> nickNames) {
    this.nickNames = nickNames;
  }
}

代码示例来源:origin: hibernate/hibernate-orm

/**
 * @author Hardy Ferentschik
 */
@Entity
public class MedicalHistory {
  @Id
  @OneToOne
  @JoinColumn(name="FK")
  Person patient;

  @Lob
  byte[] xrayData;

  private MedicalHistory() {
  }

  public MedicalHistory(Person patient) {
    this.patient = patient;
  }

  public byte[] getXrayData() {
    return xrayData;
  }

  public void setXrayData(byte[] xrayData) {
    this.xrayData = xrayData;
  }
}

代码示例来源:origin: hibernate/hibernate-orm

/**
 * @author Shawn Clowater
 */
@Entity
@org.hibernate.annotations.Entity( persister = "org.hibernate.persister.entity.SingleTableEntityPersister" )
@Persister( impl = org.hibernate.test.annotations.persister.EntityPersister.class )
public class Deck implements Serializable {
  @Id
  public Integer id;

  @OneToMany( mappedBy = "deck" )
  @Persister( impl = org.hibernate.test.annotations.persister.CollectionPersister.class )
  public Set<Card> cards;
}

代码示例来源:origin: hibernate/hibernate-orm

@org.hibernate.annotations.Entity(polymorphism = PolymorphismType.EXPLICIT)
public class Car extends Automobile {

代码示例来源:origin: hibernate/hibernate-orm

@org.hibernate.annotations.Entity(
    selectBeforeUpdate = true,
    dynamicInsert = true, dynamicUpdate = true,

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core

@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@EntityListeners(value = {AuditableEventListener.class})
public abstract class AbstractAuditable implements Auditable {

代码示例来源:origin: uk.ac.ebi.intact.core/intact-core-readonly

@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true)
@EntityListeners(value = {AuditableEventListener.class})
public abstract class AbstractAuditable implements Auditable {

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "tr_id_idx", columnNames = {"id"}),
  @Index(name = "tr_alert_id_idx", columnNames = {"alert_id"})})
@org.hibernate.annotations.Entity(mutable = false)
public class TimeRangeModel {

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "agency_id_idx", columnNames = {"id"}),
  })
@org.hibernate.annotations.Entity(mutable = true)

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "alrt_id_idx", columnNames = {"id"}),
  @Index(name = "alrt_timestamp_idx", columnNames = {"timestamp"})})
@org.hibernate.annotations.Entity(mutable = false)

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "stu_stop_id_idx", columnNames = {"stop_id"}),
  @Index(name = "stu_trip_update_id_idx", columnNames = {"trip_update_id"})})
@org.hibernate.annotations.Entity(mutable = false)

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "tu_vehicle_id_idx", columnNames = {"vehicle_id"}),
  @Index(name = "tu_timestamp_idx", columnNames = {"timestamp"})})
@org.hibernate.annotations.Entity(mutable = false)

代码示例来源:origin: omero/model-psql

@javax.persistence.Entity
@javax.persistence.Table(name = "checksumalgorithm", uniqueConstraints = {
})
@org.hibernate.annotations.Entity( selectBeforeUpdate = true )
@javax.persistence.Inheritance(strategy=javax.persistence.InheritanceType.JOINED)
@org.hibernate.annotations.GenericGenerator(name = "seq_checksumalgorithm",

代码示例来源:origin: omero/model-psql

@javax.persistence.Entity
@javax.persistence.Table(name = "immersion", uniqueConstraints = {
})
@org.hibernate.annotations.Entity( selectBeforeUpdate = true )
@javax.persistence.Inheritance(strategy=javax.persistence.InheritanceType.JOINED)
@org.hibernate.annotations.GenericGenerator(name = "seq_immersion",

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "vp_stop_id_idx", columnNames = {"stop_id"}),
  @Index(name = "vp_timestamp_idx", columnNames = {"timestamp"})})
@org.hibernate.annotations.Entity(mutable = false)

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "es_trip_route_id_idx", columnNames = {"trip_route_id"}),
  @Index(name = "es_alert_id_idx", columnNames = {"alert_id"})})
@org.hibernate.annotations.Entity(mutable = false)
public class EntitySelectorModel implements HasTripId, HasRouteId, HasStopId {

代码示例来源:origin: org.onebusaway/onebusaway-transit-data-federation

@Table(name = "where_route_collections")
@AccessType("field")
@org.hibernate.annotations.Entity(mutable = false)
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class RouteCollection {

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@Index(name = "vehicle_and_serviceDate", columnNames = {
    "vehicle_agencyId", "vehicle_id", "serviceDate"})})
@org.hibernate.annotations.Entity(mutable = false)
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class BlockLocationRecord {

代码示例来源:origin: OneBusAway/onebusaway-application-modules

@org.hibernate.annotations.Table(appliesTo = "oba_block_location_records_historical", indexes = {@Index(name = "oba_block_location_records_historical_trip", columnNames = {
  "trip_agencyId", "trip_id"})})
@org.hibernate.annotations.Entity(mutable = false)
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
@CsvFields(filename = "block_location_records.csv", fieldNameConvention = CsvFieldNameConvention.CAMEL_CASE)

相关文章