question on database query using hibernate in java with annotations
- by molleman
Hello, simple question regarding HQL(Hibernate query language)
so i have user class , that can hold a list of Projects, how do i take this out of the database depending on a username,
this is how i take out my user
String username = "stephen";
YFUser user = (YFUser) session.createQuery("select u FROM YFUser u where u.username =…