• Post Reply Bookmark Topic Watch Topic
  • New Topic

HIbernate Mapping problem

Gil Carvalho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can someone help me with this.
I have a table Users and another one roles (mapped) - one role can be done by several users

Thsi is my Users Entity

An my Roles entity

When i use spring hibernate i want to define user details with roles (1 or 2) but i receive a null field in my users table

userId=[null] username=[man] password=[123] enabled=[true]

What's wrong please??

Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!