// 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:06. // package org.andromda.test.howto2.e; import java.io.Serializable; 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.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.ManyToMany; import javax.persistence.MappedSuperclass; import javax.validation.constraints.NotNull; /** *
* TODO: Model Documentation for org.andromda.test.howto2.e.Car *
* * Autogenerated POJO EJB mapped super class for Car 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 CarEmbeddable implements Serializable{ private static final long serialVersionUID = -3145946244436067157L; // ----------- 4 Attribute Definitions ------------ protected String serial; protected String name; protected String type; protected Long id; // --------- 1 Relationship Definitions ----------- protected Set* TODO: Model Documentation for serial *
* Get the serial property. * @return String The value of serial */ @Column(name="SERIAL", nullable=false, insertable=true, updatable=true) @NotNull(message="serial is required") public String getSerial() { return this.serial; } /** ** TODO: Model Documentation for serial *
* Set the serial property. * @param value the new value */ public void setSerial(String value) { this.serial = value; } /** ** 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 type *
* Get the type property. * @return String The value of type */ @Column(name="TYPE", nullable=false, insertable=true, updatable=true) @NotNull(message="type is required") public String getType() { return this.type; } /** ** TODO: Model Documentation for type *
* Set the type property. * @param value the new value */ public void setType(String value) { this.type = 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 owners *
* Get the owners Collection * @return Set* TODO: Model Documentation for owners *
* Set the owners * @param ownersIn */ public void setOwners (Set