javax.persistence.Table.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(410)

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

Table.<init>介绍

暂无

代码示例

代码示例来源:origin: ctripcorp/apollo

  1. @Entity
  2. @Table(name = "NamespaceLock")
  3. @Where(clause = "isDeleted = 0")
  4. public class NamespaceLock extends BaseEntity{
  5. @Column(name = "NamespaceId")
  6. private long namespaceId;
  7. public long getNamespaceId() {
  8. return namespaceId;
  9. }
  10. public void setNamespaceId(long namespaceId) {
  11. this.namespaceId = namespaceId;
  12. }
  13. }

代码示例来源:origin: ctripcorp/apollo

  1. @Entity
  2. @Table(name = "ReleaseMessage")
  3. public class ReleaseMessage {
  4. @Id
  5. @GeneratedValue(strategy = GenerationType.IDENTITY)
  6. @Column(name = "Id")
  7. private long id;
  8. @Column(name = "Message", nullable = false)
  9. private String message;
  10. @Column(name = "DataChange_LastTime")
  11. private Date dataChangeLastModifiedTime;

代码示例来源:origin: spring-projects/spring-framework

  1. @Entity
  2. @Table(name="DRIVERS_LICENSE")
  3. public class DriversLicense {
  4. @Id
  5. private int id;
  6. private String serial_number;
  7. protected DriversLicense() {
  8. }
  9. public DriversLicense(String serialNumber) {
  10. this.serial_number = serialNumber;
  11. }
  12. public String getSerialNumber() {
  13. return serial_number;
  14. }
  15. }

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

  1. @Entity(name = "InheritanceSecondChildEntity")
  2. @Table(name = "InheritanceSecondChildEntity", catalog = "hibernate_orm_test_collation", schema = "dbo")
  3. @PrimaryKeyJoinColumn(name = "ID")
  4. public static class InheritanceSecondChildEntity extends InheritanceRootEntity {
  5. @ManyToOne
  6. @JoinColumn
  7. public Match match;
  8. }
  9. }

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

  1. @Entity
  2. @Table(name="Detail")
  3. private static class Detail {
  4. @Id @GeneratedValue
  5. private Integer id;
  6. @Column(nullable = false)
  7. private String detailType;
  8. private String description;
  9. }
  10. }

代码示例来源:origin: ctripcorp/apollo

  1. /**
  2. * @author Jason Song(song_s@ctrip.com)
  3. */
  4. @Entity
  5. @Table(name = "Role")
  6. @SQLDelete(sql = "Update Role set isDeleted = 1 where id = ?")
  7. @Where(clause = "isDeleted = 0")
  8. public class Role extends BaseEntity {
  9. @Column(name = "RoleName", nullable = false)
  10. private String roleName;
  11. public String getRoleName() {
  12. return roleName;
  13. }
  14. public void setRoleName(String roleName) {
  15. this.roleName = roleName;
  16. }
  17. }

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

  1. @Entity(name = "TheEntity")
  2. @Table(name = "TheEntity")
  3. public static class TheEntity {
  4. @Id
  5. @Column( length = 16 )
  6. @GeneratedValue
  7. public UUID id;
  8. }
  9. }

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

  1. @Entity(name = "BLEHome")
  2. @Table(name = "TB_BLE_HOME")
  3. public static class BLEHome extends BuildingListEntry {
  4. @Column(name = "has_ctv")
  5. protected Integer hasCtv;
  6. public Integer getHasCtv() {
  7. return hasCtv;
  8. }
  9. public void setHasCtv(Integer hasCtv) {
  10. this.hasCtv = hasCtv;
  11. }
  12. }

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

  1. @Entity( name = "thing" )
  2. @Table( name = "THING_ENTITY" )
  3. public class Thing {
  4. @Id
  5. @GeneratedValue( strategy = GenerationType.AUTO )
  6. long id;
  7. @Version
  8. long version;
  9. @Column( updatable = false )
  10. String special;
  11. }
  12. }

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

  1. @Entity
  2. @Table(name="ZOOLOGY_HUMAN")
  3. public class Human extends Mammal {
  4. @Column(name="HUMAN_IQ")
  5. private int iq;
  6. public int getIq() {
  7. return iq;
  8. }
  9. public void setIq(int iq) {
  10. this.iq = iq;
  11. }
  12. }

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

  1. @Entity(name = "Entity1")
  2. @Table(name = "Entity_1")
  3. public static class Entity1 {
  4. @Id
  5. @GeneratedValue
  6. private int id;
  7. }

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

  1. /**
  2. * @author Hardy Ferentschik
  3. */
  4. @Entity
  5. @Immutable
  6. @Table(name = "ENTITY")
  7. public class TestEntity implements Serializable {
  8. @EmbeddedId
  9. private Ref ref;
  10. @Column(name = "NAME", insertable = false, updatable = false, unique = true)
  11. private String name;
  12. }

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

  1. @Entity
  2. @Table( name = "SIMPLE_ENTITY" )
  3. private static class SimpleEntity {
  4. @Id
  5. @GeneratedValue
  6. Long id;
  7. String name;
  8. }
  9. }

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

  1. @Entity
  2. @Table( name = "FOO" )
  3. private static class Foo {
  4. @Id
  5. @GeneratedValue
  6. Long id;
  7. }
  8. }

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

  1. @Entity(name = "Address")
  2. @Table(name = "address")
  3. public static class Address {
  4. @Id
  5. @GeneratedValue
  6. private Long id;
  7. private String street;
  8. public void setStreet(String street) {
  9. this.street = street;
  10. }
  11. }

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

  1. @Entity( name = "D" )
  2. @Table( name = "D" )
  3. public static class D {
  4. @Id
  5. @Column( name = "idA")
  6. public Integer idA;
  7. }
  8. }

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

  1. @Entity(name = "ZonedDateTimeEvent")
  2. @Table(name = "ZONE_DATE_TIME_EVENT")
  3. public static class ZonedDateTimeEvent {
  4. @Id
  5. private Long id;
  6. @Column(name = "START_DATE")
  7. private ZonedDateTime startDate;
  8. }

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

  1. @Entity
  2. @Table(name = "Address")
  3. private static class Address {
  4. @Id @GeneratedValue
  5. private Integer id;
  6. @ManyToOne
  7. @JoinColumn(name = "userId")
  8. private User user;
  9. @Column(nullable = false)
  10. private String addressType;
  11. @Column(nullable = false)
  12. private String addressText;
  13. }

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

  1. @Entity( name = "Root" )
  2. @Table( name = "ROOT" )
  3. public static class Root {
  4. @Id
  5. @GeneratedValue
  6. public Integer id;
  7. public String rootName;
  8. @OneToOne
  9. public Branch branch;
  10. }

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

  1. @Entity(name = "BaseTestEntity")
  2. @Table(name = "BASE_TEST_ENTITY")
  3. public static class BaseTestEntity {
  4. @Id
  5. @GeneratedValue
  6. Long id;
  7. @OneToMany
  8. Set<TestEntity> entities;
  9. }

相关文章