1 package org.hibernate.test.batchfetch; 3 4 7 public class Model { 8 private String id; 9 private String name; 10 private String description; 11 private ProductLine productLine; 12 13 Model() {} 14 15 public Model(ProductLine pl) { 16 this.productLine = pl; 17 pl.getModels().add(this); 18 } 19 20 public String getDescription() { 21 return description; 22 } 23 public void setDescription(String description) { 24 this.description = description; 25 } 26 public String getId() { 27 return id; 28 } 29 public void setId(String id) { 30 this.id = id; 31 } 32 public String getName() { 33 return name; 34 } 35 public void setName(String name) { 36 this.name = name; 37 } 38 public ProductLine getProductLine() { 39 return productLine; 40 } 41 public void setProductLine(ProductLine productLine) { 42 this.productLine = productLine; 43 } 44 } 45 | Popular Tags |