when using the DefaultNamingStrategy to map an entity with multiple identical tables, but with different suffixes as per below,
http://stackoverflow.com/questions/8573 ... nnotationsfew questions,
1) The parameter 'yearSuffixTable' - how is it being passed to the naming strategy implementation? i assume its a member variable that is being populated when required is that right and that the value is not hardcoded?
2) when exactly its value [ 'yearSuffixTable'] is being set? Is it at application start up or at run time ?
do we need to know all possible year suffixes and create a naming strategy for each one of them (hardcoded) during the application start up itself or have one naming strategy implementation with the 'yearSuffixTable' parameter and the value of the parameter be set at run time ?
3) does one need to create the hibernate session at application start up for each of those naming strategy combinations (year suffixes) at application start up and cache it or we can do it at run time when needed? any advantage between the two apart from the creation time.
please share (if any) code samples to understand it better, thanks.
regards
aravias