Relative Content

Tag Archive for javahibernatejpa

Problem with proper usage of orphan removal

I use spring boot 2.7.18 with java 17 and maven. Please treat it purely for educational purposes (don’t shout at me that that’s not how filtering and updating should work, I know it). I’ve created that simple example after reading the article about ‘best way to handle hibernate MultipleBagFetchException’ and stumbled upon the problem with […]

Override columnDefinition in hibernate

I’m having an issue where a JPAentity I’m importing from another library has a field that’s hardcoded to be columnDefinition = TEXT but I’d like that field to be LONGTEXT in the db. I am not allowed to edit to the JPAentity itself, nor can I just make my own. Is there a way to force this via a custom dialect somehow?