• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to find out objects from relational databases  RSS feed

 
suresh charan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way through which i can find out the possible objects from ralational database schema.For example,Say Employee schema has three tables Employee,Departments,Emp_Departments(a mapping table).In this case,i have two possible business objects namely Employee,Departments.

Is it same as reverse engineering of object relational mapping?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it is kind of a process you have to go through. you have to figure out what you want as your Object model that is as OO as possible, and then map you classes to the data model.

You can also use reverse engineering to have say Hibernate automatically create your mapping files, and from there create your Java objects.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!