I'm using hibernate
to auto-create some postgres database tables.
Now I'd like to move one of the tables to a different location (harddrive).
This is done using tablespaces
.
Question: how can I define the tablespace for an @Entity
? Is that possible at all?
As of 4.3.9
version, there's no support for tablespaces
in Hibernate, which leaves you with two options:
You either customize the hbmddl
generation to include the tablespace
as previously suggested.
You let go hbmddl and simply use your own incremental database schema generation. FlywayDB is both simple and powerful, and you can get the most control over the database schema generation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With