File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Mapping file for table that has two classes for maintained for attribute mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping file for table that has two classes for maintained for attribute mapping" Watch "Mapping file for table that has two classes for maintained for attribute mapping" New topic
Author

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

Raghusham Sankargal
Ranch Hand

Joined: Oct 10, 2005
Posts: 59
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.

Raghusham Sankargal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping file for table that has two classes for maintained for attribute mapping