Using Hibernate/JPA with tables partitioned by triggers and inheritance doesn't work since the result is 0 affected rows. In truth Postgresql inserted the rows.
Is there a solution which doesn't involve hacking Hibernate/JPA?