There is no way to configure the Configuration before it is used to create the SessionFactory.
I ran in to this problem because I need to override the connection url, user and password properties in test cases (so that an in-memory HSQLDB database can be used). I am sure that there will be other scenarios where properties will need to be overriden at run time,
Access to the Configuration object might not be sensible. An alternative would be the ability to provide names and values that are then set in the Configuration before SessionFactory creation.
|Field||Original Value||New Value|
|Priority||Minor [ 4 ]||Major [ 3 ]|
|Assignee||Howard M. Lewis Ship [ hlship ]|
|Assignee||Howard M. Lewis Ship [ hlship ]||Dan Adams [ hagios17 ]|
|Fix Version/s||5.0.6 [ 12312544 ]|
|Summary||Need a way to override hibernate properties.||Allow contributions to the Hibernate Configuration|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Workflow||jira [ 12399800 ]||Default workflow, editable Closed status [ 12569204 ]|
|Workflow||Default workflow, editable Closed status [ 12569204 ]||jira [ 12592126 ]|