Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

How to represent the whole database to OOP

Hi all,

I want to know how can I represent all database object to OOP? It means that I want to use property and method of class instead of using sql statement. For example, if I want to delete a student record I may call Delete method from student class then provide the ID that I want to delete. Could anyone provide me the good clue to do that?

Thanks
0
sdieken
Asked:
sdieken
1 Solution
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I think You need to try an ORM (Object/Relational Model) engine like Hibernate which mapps the databse to java Objects.

Check out

http://www.hibernate.org/

http://www.onjava.com/pub/a/onjava/2004/01/14/hibernate.html

I think this is one of the Best ORMs and its a OpenSource Project so try it out.

Thank You.
0
 
sdiekenAuthor Commented:
Thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now