本文整理了Java中javax.persistence.Entity.<init>()
方法的一些代码示例,展示了Entity.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.<init>()
方法的具体详情如下:
包路径:javax.persistence.Entity
类名称:Entity
方法名:<init>
暂无
代码示例来源:origin: ctripcorp/apollo
@Entity
@Table(name = "NamespaceLock")
@Where(clause = "isDeleted = 0")
public class NamespaceLock extends BaseEntity{
@Column(name = "NamespaceId")
private long namespaceId;
public long getNamespaceId() {
return namespaceId;
}
public void setNamespaceId(long namespaceId) {
this.namespaceId = namespaceId;
}
}
代码示例来源:origin: testcontainers/testcontainers-java
@Data
@Entity
public class DemoEntity {
@Id
@GeneratedValue
private Long id;
@Column
private String value;
}
代码示例来源:origin: spring-projects/spring-framework
@Entity
@Table(name="DRIVERS_LICENSE")
public class DriversLicense {
@Id
private int id;
private String serial_number;
protected DriversLicense() {
}
public DriversLicense(String serialNumber) {
this.serial_number = serialNumber;
}
public String getSerialNumber() {
return serial_number;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "InheritanceSecondChildEntity")
@Table(name = "InheritanceSecondChildEntity", catalog = "hibernate_orm_test_collation", schema = "dbo")
@PrimaryKeyJoinColumn(name = "ID")
public static class InheritanceSecondChildEntity extends InheritanceRootEntity {
@ManyToOne
@JoinColumn
public Match match;
}
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* @author Emmanuel Bernard
*/
@Entity
@AssociationOverrides({
@AssociationOverride(name = "id.channel", joinColumns = @JoinColumn(name = "chan_id", nullable = false)),
@AssociationOverride(name = "id.presenter", joinColumns = @JoinColumn(name = "presenter_name", nullable = false))})
public class TvMagazin {
@EmbeddedId
public TvMagazinPk id;
@Temporal(TemporalType.TIME)
@Column(name="`time`")
Date time;
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity
@Table(name="Detail")
private static class Detail {
@Id @GeneratedValue
private Integer id;
@Column(nullable = false)
private String detailType;
private String description;
}
}
代码示例来源:origin: ctripcorp/apollo
/**
* @author Jason Song(song_s@ctrip.com)
*/
@Entity
@Table(name = "Role")
@SQLDelete(sql = "Update Role set isDeleted = 1 where id = ?")
@Where(clause = "isDeleted = 0")
public class Role extends BaseEntity {
@Column(name = "RoleName", nullable = false)
private String roleName;
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "TheEntity")
@Table(name = "TheEntity")
public static class TheEntity {
@Id
@Column( length = 16 )
@GeneratedValue
public UUID id;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "BLEHome")
@Table(name = "TB_BLE_HOME")
public static class BLEHome extends BuildingListEntry {
@Column(name = "has_ctv")
protected Integer hasCtv;
public Integer getHasCtv() {
return hasCtv;
}
public void setHasCtv(Integer hasCtv) {
this.hasCtv = hasCtv;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity( name = "thing" )
@Table( name = "THING_ENTITY" )
public class Thing {
@Id
@GeneratedValue( strategy = GenerationType.AUTO )
long id;
@Version
long version;
@Column( updatable = false )
String special;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity
@Table(name="ZOOLOGY_HUMAN")
public class Human extends Mammal {
@Column(name="HUMAN_IQ")
private int iq;
public int getIq() {
return iq;
}
public void setIq(int iq) {
this.iq = iq;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "Entity1")
@Table(name = "Entity_1")
public static class Entity1 {
@Id
@GeneratedValue
private int id;
}
代码示例来源:origin: hibernate/hibernate-orm
/**
* @author Hardy Ferentschik
*/
@Entity
@Immutable
@Table(name = "ENTITY")
public class TestEntity implements Serializable {
@EmbeddedId
private Ref ref;
@Column(name = "NAME", insertable = false, updatable = false, unique = true)
private String name;
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity
@Table( name = "SIMPLE_ENTITY" )
private static class SimpleEntity {
@Id
@GeneratedValue
Long id;
String name;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity( name = "Entity1" )
@Table( name = "Entity1" )
public static class Entity1 {
@Id
@GeneratedValue( strategy = GenerationType.SEQUENCE )
public Integer id;
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity
@Table( name = "FOO" )
private static class Foo {
@Id
@GeneratedValue
Long id;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "Address")
@Table(name = "address")
public static class Address {
@Id
@GeneratedValue
private Long id;
private String street;
public void setStreet(String street) {
this.street = street;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "AInfo")
public static class AInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
@Column(unique = true)
private String uniqueString;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity(name = "LDE")
public static class LocalDateEvent {
@Id
@GeneratedValue
private Long id;
@Column(name = "START_DATE", nullable = false)
private LocalDate startDate;
}
代码示例来源:origin: hibernate/hibernate-orm
@Entity( name = "D" )
@Table( name = "D" )
public static class D {
@Id
@Column( name = "idA")
public Integer idA;
}
}
内容来源于网络,如有侵权,请联系作者删除!