1 29 30 package com.caucho.amber.cfg; 31 32 import javax.persistence.GenerationType; 33 34 35 38 public class GeneratedValueConfig { 39 40 private GenerationType _strategy; 42 private String _generator; 43 44 public GenerationType getStrategy() 45 { 46 return _strategy; 47 } 48 49 public void setStrategy(String strategy) 50 { 51 _strategy = GenerationType.valueOf(strategy); 52 } 53 54 public String getGenerator() 55 { 56 return _generator; 57 } 58 59 public void setGenerator(String generator) 60 { 61 _generator = generator; 62 } 63 } 64 | Popular Tags |