@Entity public abstract class Size extends DomainObject
Inheritance.strategy()
as InheritanceType.TABLE_PER_CLASS
{@link Cache}
,
Serialized FormModifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getId()
Id type, but manually generated. |
Product |
getProduct()
OneToOne JoinColumn.name() = product_id |
int |
hashCode() |
void |
setId(Long id)
Id type, but manually generated. |
void |
setProduct(Product product)
OneToOne JoinColumn.name() = product_id |
String |
toString() |
public Size()
public Size(Product p)
public Product getProduct()
OneToOne
JoinColumn.name()
= product_idpublic void setProduct(Product product)
OneToOne
JoinColumn.name()
= product_idpublic Long getId()
Id
type, but manually generated. Typically one can set this the same as Product.getId()
as its a OneToOne
mappingpublic void setId(Long id)
Id
type, but manually generated. Typically one can set this the same as Product.getId()
as its a OneToOne
mappingCopyright © 2018. All rights reserved.