/** * @author Emmanuel Bernard */ @Entity @Table(name = "sport_car") @org.hibernate.annotations.Entity(polymorphism = PolymorphismType.EXPLICIT) //raise a warn public class SportCar extends Car { }
/** * @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; } }
/** * @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; } }
/** * @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; }
@org.hibernate.annotations.Entity(polymorphism = PolymorphismType.EXPLICIT) public class Car extends Automobile {
@org.hibernate.annotations.Entity( selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true,
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true) @EntityListeners(value = {AuditableEventListener.class}) public abstract class AbstractAuditable implements Auditable {
@org.hibernate.annotations.Entity(dynamicUpdate = true, dynamicInsert = true) @EntityListeners(value = {AuditableEventListener.class}) public abstract class AbstractAuditable implements Auditable {
@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 {
@Index(name = "agency_id_idx", columnNames = {"id"}), }) @org.hibernate.annotations.Entity(mutable = true)
@Index(name = "alrt_id_idx", columnNames = {"id"}), @Index(name = "alrt_timestamp_idx", columnNames = {"timestamp"})}) @org.hibernate.annotations.Entity(mutable = false)
@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)
@Index(name = "tu_vehicle_id_idx", columnNames = {"vehicle_id"}), @Index(name = "tu_timestamp_idx", columnNames = {"timestamp"})}) @org.hibernate.annotations.Entity(mutable = false)
@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",
@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",
@Index(name = "vp_stop_id_idx", columnNames = {"stop_id"}), @Index(name = "vp_timestamp_idx", columnNames = {"timestamp"})}) @org.hibernate.annotations.Entity(mutable = false)
@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 {
@Table(name = "where_route_collections") @AccessType("field") @org.hibernate.annotations.Entity(mutable = false) @Cache(usage = CacheConcurrencyStrategy.READ_ONLY) public class RouteCollection {
@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 {
@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)