This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Getting started with Java programming language and have Ashish Sarin & J Sharma on-line!
See this thread for details.
Win a copy of Getting started with Java programming language this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HSQL-related question  RSS feed

 
Cloey Tan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im working on some hsql dynamic generation. Since Im not that familiar with the hsql query, would like to seek some help here regarding this particular case. Assuming that
I have a User entity, and related to Role Entity.

public class User{
protected List<Role> roles;
}

is it relevant to put >> select user from User as user AND user.roles as userRole WHERE userRole.name='super'
in order to select all users with the role name 'super'??
 
Rob Spoor
Sheriff
Posts: 20872
71
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to JDBC
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!