Rejected
Details
Assignee
UnassignedUnassignedReporter
Matthias BosshardMatthias BosshardComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Matthias Bosshard
Matthias BosshardComponents
Affects versions
Priority
Created May 26, 2010 at 10:59 AM
Updated April 22, 2015 at 6:24 PM
Resolved July 8, 2014 at 3:10 PM
With Hibernate 3.5.2 the ISNULL/COALESCE SQL statement in the following @Formula is prefixed with a this_. An so its no valid SQL.
The annotation:
@Formula( "(SELECT ISNULL ( (SELECT 1 WHERE EXISTS (SELECT * FROM org.usertable as user WHERE user.user_id = user_id)), 0))" )
The SQL part for this formula:
(SELECT this_.ISNULL ( (SELECT 1 WHERE EXISTS (SELECT * FROM org.usertable as user WHERE user.user_id = this_.user_id)), 0)) as formula8_1_,
-> thats invalid SQL
In Hibernate 3.5.1 the SQL is pretty the same, but without this_. before ISNULL.
(SELECT ISNULL ( (SELECT 1 WHERE EXISTS (SELECT * FROM org.usertable as user WHERE user.user_id = this_.user_id)), 0)) as formula8_1_,