Hibernate doesn't respect fetch mode, when alias is used.
I've tested it only with Oracla 10g XE and H2 databases, but it seems to me, that it is generic issue common for all database engines.
Attached test cases. Db settings could be changed in src/main/resources/db.properties.
Probably import of Oracle driver should be done into local maven repository
One of them is finishing successfully (without aliases) but second one fails(with aliases).
No workarounds found so far.
|