Refine search
@Embeddable public class EmailAddress { private static final Pattern PATTERN = Pattern.compile(EMAIL_REGEX); @Column(name = "email") private String value;
@Embeddable public class PolicyId implements Serializable { @Column(name="`type`", length=32) String type; DependentId depPK; }
@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[]
@Embeddable public class PolicyId implements Serializable { @Column(name = "`type`", length = 32) String type; DependentId depPK; }
@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; } }
@Embeddable public static class TypeValue { String type; @Column(columnDefinition = "TEXT") String value; }
@Embeddable public class PoolAddress { @Column(table = "POOL_ADDRESS") private String address; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } }
@Embeddable public class LanguageImpl implements org.kie.internal.task.api.model.Language { @Column(nullable=false) private String mapkey;
@Embeddable public static class OrderLockPk implements Serializable { @Column(name = "ORDER_ID") protected Long orderId; @Column(name = "LOCK_KEY") protected String key;
/** * @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; } }
@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; } } }
@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;
@Embeddable public class EmployeeId implements Serializable { @Column(length = 15) public String age; @Column(length = 20) private String name; private String birthday; } }
@Embeddable public class EmployeeId implements Serializable { @Column(length = 32) String firstName; @Column(length = 32) String lastName; }
@Embeddable public static class Recorder { @NotNull @Column(name = "`time`") public BigDecimal time; } }
@Embeddable public class ArchiveStatus implements Serializable, SandBoxNonProductionSkip { @Column(name = "ARCHIVED") @AdminPresentation(friendlyName = "archived", visibility = VisibilityEnum.HIDDEN_ALL, group = "ArchiveStatus") protected Character archived = 'N';
@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; } }
@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;
@Embeddable public class PreviewStatus implements Serializable, Previewable { @Column(name = "IS_PREVIEW") @AdminPresentation(excluded = true) protected Boolean isPreview;
@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[]