// license-header java merge-point // // Attention: Generated code! Do not modify by hand! // Generated by EntityEmbeddable.vsl in andromda-ejb3-cartridge on 09/18/2014 16:56:07. // package org.andromda.test.howto11.a; import java.io.Serializable; import java.util.Date; import java.util.HashSet; import java.util.Set; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.MappedSuperclass; import javax.persistence.OneToMany; import javax.persistence.Temporal; import javax.persistence.TemporalType; import javax.validation.constraints.NotNull; /** *
* TODO: Model Documentation for org.andromda.test.howto11.a.Person *
* * Autogenerated POJO EJB mapped super class for Person containing the * bulk of the entity implementation. * * This is a mapped super class and autogenerated by AndroMDA using the EJB3 * cartridge. * * DO NOT MODIFY this class. */ @MappedSuperclass public abstract class PersonEmbeddable implements Serializable{ private static final long serialVersionUID = -8789241470314237424L; // ----------- 3 Attribute Definitions ------------ protected String name; protected Date birthDate; protected Long id; // --------- 1 Relationship Definitions ----------- protected Set* TODO: Model Documentation for name *
* Get the name property. * @return String The value of name */ @Column(name="NAME", nullable=false, insertable=true, updatable=true) @NotNull(message="name is required") public String getName() { return this.name; } /** ** TODO: Model Documentation for name *
* Set the name property. * @param value the new value */ public void setName(String value) { this.name = value; } /** ** TODO: Model Documentation for birthDate *
* Get the birthDate property. * @return Date The value of birthDate */ @Column(name="BIRTH_DATE", nullable=false, insertable=true, updatable=true) @Temporal(TemporalType.TIMESTAMP) @NotNull(message="birthDate is required") public Date getBirthDate() { return this.birthDate; } /** ** TODO: Model Documentation for birthDate *
* Set the birthDate property. * @param value the new value */ public void setBirthDate(Date value) { this.birthDate = value; } /** ** TODO: Model Documentation for id *
* Get the id property. * @return Long The value of id */ @Id @GeneratedValue(strategy=GenerationType.AUTO) @Column(name="ID", nullable=false, insertable=true, updatable=true) public Long getId() { return this.id; } /** ** TODO: Model Documentation for id *
* Set the id property. * @param value the new value */ public void setId(Long value) { this.id = value; } // ------------- 1 Relations ------------------ /** ** TODO: Model Documentation for cars *
* Get the cars Collection * @return Set* TODO: Model Documentation for cars *
* Set the cars * @param carsIn */ public void setCars (Set