• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

hibernate bug in select ?

Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys :

I have the following mapping file (autogenerated in hibernate). If I
uncomment the text inside the <!-- --> a select all NmrPulseStateNuclei winds up causing a "Invalid value for getLong() - '"1H8"' " error.

Now, the data in the table is as follows (sample for 1st row).


So it looks like hibernate is selecting the WRONG column on accident ?
I.E. it is trying to map n_pulse_sn_nucleus into n_pulse_sn_id...
why would this be ?

I am shocked that autogenerated hibernate code is not even doing type safe queries ?

Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Most of the time, it turns out that the bug is ours and not Hibernate's .
Try looking into the class definitions, especially the types of ID fields.
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic