Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with hibernate dao method

 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I am having This error when I press submit button on login page.


Please help me.
thank you very much.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see an error in there. Can you explain a bit more about what is happening and what you expect to happen? And perhaps post some code?
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Paul Sturrock.
thank you for your responce.
I have a login page with username,password,and userType(Admin,hod,student).
when i write username,password and choose admin and press submit,the variable results return null and that report generate.



 
Vijay Dharap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am not able to see your log.debug for .. in the log that you have posted.

Thus I am not even sure whether the log posted is corresponding to the query getting executed for

Can you provide the appropriate log?
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I provide the appropriate log?
 
Vijay Dharap
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Well..

First of all.. you should ensure that your logging statements are getting logged into the log by checking your log4j configuration.

Secondly.. search for "finding EmployeesDTO instance by example" in your log and then you can paste lines appearing in the log from that line onwards..
 
peter aerts
Ranch Hand
Posts: 32
MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i replace findbyExample method by another.
please help.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic