| Need help to solve this problem.
I have hibernate Inteceptor class to change the DB schema at runtime
 but it seems to be not working for ID generation. Here is the Code
 
 @Id
 @GenericGenerator(name = "generator", strategy = "hilo", parameters =
 {@Parameter(name= "table", value= "SomeTable"),
 @Parameter(name="schema", value="Dev"),
 @Parameter(name="column", value= "ID"),
 @Parameter(name="max_lo", value= "10")
 
 }
 )
 @GeneratedValue(generator="generator")
 @Column(name = "Table_CLS_ID", unique = true, nullable = false)
 public Long getTableClsId() {
 
 return this.pltClsId;
 }
 
 I would like to change @Parameter schma to Prod, or test, to be loaded from properties file, or some other mechnism.  How do i do that?
 
 
 |