I have the follow legacy database structure and content:
order parameter value
--------------------------------
1 user_login user
1 user_password 123456
1 user_level basic
2 user_login admin
2 user_password s3k42k
2 user_level advanced
I would like to represent this as below and utilize a entity called 'User' so that i can abstract the complexity of the legacy structure:
id user password level
-------------------------------
1 user 123456 basic
2 admin s3k42k advanced
I got it do this using a view in database, but i couldnt update using this view. Is there a way to represent the legacy structure using Hibernate so than i can update too?