本文整理了Java中javax.persistence.Embeddable.<init>()
方法的一些代码示例,展示了Embeddable.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Embeddable.<init>()
方法的具体详情如下:
包路径:javax.persistence.Embeddable
类名称:Embeddable
方法名:<init>
暂无
代码示例来源:origin: spring-projects/spring-data-book
@Embeddable
public class EmailAddress {
private static final Pattern PATTERN = Pattern.compile(EMAIL_REGEX);
@Column(name = "email")
private String value;
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public class PolicyId implements Serializable {
@Column(name="`type`", length=32)
String type;
DependentId depPK;
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class Phone {
@Column
private String mobile;
public Phone() {}
public Phone(String mobile) {
this.mobile = mobile;
}
}
//end::locking-jpa-query-hints-scope-entity-example[]
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public class PolicyId implements Serializable {
@Column(name = "`type`", length = 32)
String type;
DependentId depPK;
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class PersonAddressId implements Serializable {
@Column(name = "id")
private Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class TypeValue {
String type;
@Column(columnDefinition = "TEXT")
String value;
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public class PoolAddress {
@Column(table = "POOL_ADDRESS")
private String address;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}
代码示例来源:origin: kiegroup/jbpm
@Embeddable
public class LanguageImpl implements org.kie.internal.task.api.model.Language {
@Column(nullable=false)
private String mapkey;
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Embeddable
public static class OrderLockPk implements Serializable {
@Column(name = "ORDER_ID")
protected Long orderId;
@Column(name = "LOCK_KEY")
protected String key;
代码示例来源:origin: hibernate/hibernate-orm
/**
* @author Emmanuel Bernard
*/
@Embeddable
public class SizeImpl implements Size {
@Column(name = "name", nullable = false)
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class Address2 {
public Integer buildingNumber;
public String street;
@Column( name = "a_type" )
public String type;
public Address2() {
}
public Address2(Integer buildingNumber, String street) {
this.buildingNumber = buildingNumber;
this.street = street;
}
}
}
代码示例来源:origin: shopizer-ecommerce/shopizer
@Embeddable
public class AuditSection implements Serializable {
@Column(name = "DATE_CREATED")
private Date dateCreated;
@Column(name = "DATE_MODIFIED")
private Date dateModified;
@Column(name = "UPDT_ID", length=20)
private String modifiedBy;
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public class EmployeeId implements Serializable {
@Column(length = 15)
public String age;
@Column(length = 20)
private String name;
private String birthday;
}
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public class EmployeeId implements Serializable {
@Column(length = 32)
String firstName;
@Column(length = 32)
String lastName;
}
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class Recorder {
@NotNull
@Column(name = "`time`")
public BigDecimal time;
}
}
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Embeddable
public class ArchiveStatus implements Serializable, SandBoxNonProductionSkip {
@Column(name = "ARCHIVED")
@AdminPresentation(friendlyName = "archived", visibility = VisibilityEnum.HIDDEN_ALL, group = "ArchiveStatus")
protected Character archived = 'N';
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class Name {
@Column(name = "first_name")
public String first;
public String middle;
@Column(name = "last_name")
public String last;
public Name() {
}
public Name(String first, String middle, String last) {
this.first = first;
this.middle = middle;
this.last = last;
}
}
代码示例来源:origin: shopizer-ecommerce/shopizer
@Embeddable
public class CreditCard {
@Column (name ="CARD_TYPE")
@Enumerated(value = EnumType.STRING)
private CreditCardType cardType;
@Column (name ="CC_OWNER")
private String ccOwner;
@Column (name ="CC_NUMBER")
private String ccNumber;
代码示例来源:origin: BroadleafCommerce/BroadleafCommerce
@Embeddable
public class PreviewStatus implements Serializable, Previewable {
@Column(name = "IS_PREVIEW")
@AdminPresentation(excluded = true)
protected Boolean isPreview;
代码示例来源:origin: hibernate/hibernate-orm
@Embeddable
public static class Phone {
private String type;
@Column(name = "`number`")
private String number;
//Getters and setters are omitted for brevity
//end::collections-embeddable-type-collection-lifecycle-entity-example[]
public Phone() {
}
public Phone(String type, String number) {
this.type = type;
this.number = number;
}
public String getType() {
return type;
}
public String getNumber() {
return number;
}
//tag::collections-embeddable-type-collection-lifecycle-entity-example[]
}
//end::collections-embeddable-type-collection-lifecycle-entity-example[]
内容来源于网络,如有侵权,请联系作者删除!