// license-header java merge-point // // Attention: Generated code! Do not modify by hand! // Generated by: HibernateEntity.vsl in andromda-hibernate-cartridge. // package org.andromda.test.1.a; /** * */ public abstract class Car implements java.io.Serializable { /** * The serial version UID of this class. Needed for serialization. */ private static final long serialVersionUID = 1482312724387213880L; private java.lang.Long id; /** * */ public java.lang.Long getId() { return this.id; } public void setId(java.lang.Long id) { this.id = id; } /** * Returns true if the argument is an Car instance and all identifiers for this entity * equal the identifiers of the argument entity. Returns false otherwise. */ public boolean equals(Object object) { if (this == object) { return true; } if (!(object instanceof Car)) { return false; } final Car that = (Car)object; if (this.id == null || that.getId() == null || !this.id.equals(that.getId())) { return false; } return true; } /** * Returns a hash code based on this entity's identifiers. */ public int hashCode() { int hashCode = 0; hashCode = 29 * hashCode + (id == null ? 0 : id.hashCode()); return hashCode; } /** * Constructs new instances of {@link org.andromda.test.1.a.Car}. */ public static final class Factory { /** * Constructs a new instance of {@link org.andromda.test.1.a.Car}. */ public static org.andromda.test.1.a.Car newInstance() { return new org.andromda.test.1.a.CarImpl(); } } // HibernateEntity.vsl merge-point }