• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate parameter binding

 
Joe Gliniecki
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do some volunteer programming for the local school district, and we are evaluating Hibernate.

I have it working where I can return the entire table, but when I try to add parameter binding, nothing is returned, even though for the given value it should return 3 records.

This returns all 1500 or so records from a table of classroom video titles:


This should return 3 titles, but returns none, with no errors/exceptions


I enabled log4j debugging and can see the my value of "lincoln" is being bound to the parameter:



Any ideas on what I might be doing wrong? The current system would return 3 rows when looking for a title that is like "lincoln".

Thanks,
Joe
 
Joe Gliniecki
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to post that it was a simple error on my part. I wasn't using %lincoln%. I guess it was getting too late at night :-)
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes the simplest problems are the most difficult ones to diagnose.

Get some sleep!


-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic