Hello,
i just wonder if there is a tool out there which can convert a SQL-Create Statement into an Java Class with Hibernate Annotation / JPA.
For example like this:
My Statement:
Code:
CREATE TABLE Person(
ID LONG NOT NULL,
NAME VARCHAR(45) NOT NULL,
PRIMARY KEY (ID)
);
And the Outcome would be somethign like this:
Code:
..
@Entity
public class Person implements Serializable{
@Id
private long id;
@Basic
private String name;
...
}
I looked at some tools but didnt quite find something which could do this. Maybe there isnt even one. Would be glad if someone could clearify this. Maybe there is a tool which can do similar things.