Here is the example of the findAll() query:
public List<Edition> findAll() {
| return (List<Edition>) em
| .createQuery(
| "SELECT edition FROM Edition
edition").getResultList();
It is in the facade. I tried to print result list from within facade, but it
failed, so it is not about client (I guess).
I added <property name="hibernate.show_sql" value="true" /> in persistence.xml
and this is what came up on the console:
09:31:03,125 INFO [STDOUT] Hibernate: select edition0_.applicationId as
applicat1_72_, edition0_.versionMark as versionM2_72_, edition0_.organisationId
as organisa3_72_ from edition edition0_
| 09:31:03,140 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: S1009
| 09:31:03,140 ERROR [JDBCExceptionReporter] Invalid value for getLong() -
'4.0.3'
|
I have one row in that table: applicationId=1, versionMark=4.0.3 and
organisationId=1 (referenced tables contain these values - there are no
constraints violated).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921137#3921137
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921137
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user