Author: dcosse Date: 2014-04-24 10:17:45 +0200 (Thu, 24 Apr 2014) New Revision: 706 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/706 Log: add bug explanation on readme Modified: hibernate-list-idx-bug/README.txt Modified: hibernate-list-idx-bug/README.txt =================================================================== --- hibernate-list-idx-bug/README.txt 2014-04-23 16:24:25 UTC (rev 705) +++ hibernate-list-idx-bug/README.txt 2014-04-24 08:17:45 UTC (rev 706) @@ -5,7 +5,25 @@ Run with $ mvn clean package -The unit test is expecting an exception which is not thrown in Hibernate 4.3.5.Final +example model: + Building + | 1 + | + | + v 0..* + Flat <<abstract>> + ^ + | + ---------- + | | + Loft Suite + + +The unit test will throw an exception: + ERROR: Table "FLAT" not found; SQL statement: update Flat set building=?, building_idx=? where flatId=? [42102-177] + +This is due to used of union-subclass, is that case indexes have to be created on concrete entities tables as Loft and Suite +and not Flat for this example.