Enhancement 196 : ENHANCEMENT: Add Boolean type to Ebean.createSqlQuery
Priority 
Medium
Reported Version 
 
Logged By 
Ilya Skorik
Status 
Fixed
Fixed Version 
2.4.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
04/01/2010
Updated 
04/01/2010
Type 
Enhancement
 
Attachments 
No attachments

String sql = "SELECT true as exist FROM objects WHERE object_uuid = :id";
SqlRow query = Ebean.createSqlQuery(sql)
.setParameter("id", id)
.findUnique();
>> Boolean exist = query.getBoolean("exist"); <<

 
Rob 18 Jan 09:54
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file