neosoftguy / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

GenericDAO Search failed with boolean Column #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE: If you have a question rather than a bug report or feature request,
please post at http://groups.google.com/group/java-generic-dao .

What steps will reproduce the problem?
* Data preparation :
1. Create entity that had boolean object
2. Insert using GenericDAO this entity with booleab value at <true> on specific 
table
* Test run
3. Create ISearch search object :
Search search = new Search();
search.addFilterEqual("booleanColumn", true);
3. Search this entity using GenericDAO. Use search(ISearch search) method
4. Call yourDao.search(search );

What is the expected output? What do you see instead?
The result expectd is the entity created
No results is returned
What version of the product are you using? On what operating system?
hibernate-generic-dao 1.2.0
mysql 5.1.22
Windows7

Please provide any additional information below.

Original issue reported on code.google.com by yacine.j...@gmail.com on 7 May 2014 at 1:49

GoogleCodeExporter commented 9 years ago
Can you remove this issue cause the error was provided by my source code.
In fact, the entity was changed before doing the query. So, hibernate detects 
this change and before launching the request, one update is launched.
That was difficult to detect this behavior cause the database was not changed 
cause one RunTimeExecption was catched.

Thank you.

Original comment by yacine.j...@gmail.com on 12 May 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Closed because the reporter confirmed this is actually not a bug.

Original comment by dwolvert on 12 May 2014 at 12:57