Forums Register Login

Mapping file for table that has two classes for maintained for attribute mapping

+Pie Number of slices to send: Send
Hi I have a table Employee with fields
emp_id
emp_name
emp_role
created_by
updated_by
For this I have defined classes

The reason I have a class called UserInfo is because I can use this class for all other tables. The usage of UserInfo inside employee is given below


Questions:
1. I am not sure whether I can do like this or not. Would you please tell whether I can do this way?
2. I had even problems to put the Mapping class too for the same. Would you please how I can do this?

Thanks in advance,
Sham.
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1004 times.
Similar Threads
Hibernate association mapping
how to use one-to-one association
one to many mapping
How to create mapping for a Key-Value kinda Table ?
Doubt in Mapping Associations
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:19:14.