Unable to pass connection parameters to EmbeddedDatabaseBuilder [SPR-12614] #17215
Labels
in: data
Issues in data modules (jdbc, orm, oxm, tx)
status: superseded
An issue that has been superseded by another
type: enhancement
A general enhancement
Petar Tahchiev opened SPR-12614 and commented
Following this problem here:
http://stackoverflow.com/questions/24687769/how-can-i-resolve-this-sqltransactionrollbackexception-with-hsqldb-in-spring-bat
I had a look at the
EmbeddedDatabaseBuilder
and it looks like it is always created withnew EmbeddedDatabaseFactory();
(burried inside the constructor), so we can't change theEmbeddedDatabaseFactory
being used. The factory, however does provide a setter method to setEmbeddedDatabaseConfigurer
which would technically allow us to set additional connection properties (like hsqldb.tx=mvcc). I think the proper solution would be to add a setter method toEmbeddedDatabaseBuilder
to allow setting customDatabaseFactory
.No further details from SPR-12614
The text was updated successfully, but these errors were encountered: