1 package org.hibernate.mapping; 3 4 import java.io.Serializable ; 5 import java.util.Properties ; 6 7 13 public class IdGenerator implements Serializable { 14 private String name; 15 private String identifierGeneratorStrategy; 16 private Properties params = new Properties (); 17 18 19 20 23 public String getIdentifierGeneratorStrategy() { 24 return identifierGeneratorStrategy; 25 } 26 27 30 public String getName() { 31 return name; 32 } 33 34 37 public Properties getParams() { 38 return params; 39 } 40 41 public void setIdentifierGeneratorStrategy(String string) { 42 identifierGeneratorStrategy = string; 43 } 44 45 public void setName(String string) { 46 name = string; 47 } 48 49 public void addParam(String key, String value) { 50 params.setProperty(key, value); 51 } 52 53 } 54 | Popular Tags |