01: package com.completex.objective.persistency.examples.ex003.domain;
02:
03: /**
04: * @author Gennady Krizhevsky
05: */
06: public class Product {
07: private ProductAttr productAttr = new ProductAttr();
08:
09: public Product() {
10: }
11:
12: public Product(ProductAttr productAttr) {
13: this .productAttr = productAttr;
14: }
15:
16: public ProductAttr getProductAttr() {
17: return productAttr;
18: }
19:
20: public void setProductAttr(ProductAttr productAttr) {
21: this .productAttr = productAttr;
22: }
23:
24: public Long getProductId() {
25: return getProductAttr() == null ? null : getProductAttr()
26: .getProductId();
27: }
28: }
|