Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate hiberate POJO classes from DB tables

I have an sql script that contains DDL's for creating many number of tables, simply will execute this script for creating tables in db.

Now i want to use hibernate to perform CURD operations on that tables, but going through each table for creating POJO's will take time. So, is there any way to generate those POJO with JPA annotations using those DB tables which are already created?

Please help me.

like image 294
Pawan Avatar asked May 02 '12 16:05

Pawan


1 Answers

In Eclipse you can use the Telosys Tools plugin ( http://marketplace.eclipse.org/content/telosys-tools ) It works from an existing database and generates different kinds of source files typically Java beans with JPA annotations See http://tools.telosys.org
and the tutorials : https://sites.google.com/site/telosystutorial/

like image 52
lgu Avatar answered Sep 24 '22 00:09

lgu