Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes IDEs, Version Control and other tools and the fly likes JPA reverse engineering in IntelliJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "JPA reverse engineering in IntelliJ" Watch "JPA reverse engineering in IntelliJ" New topic
Author

JPA reverse engineering in IntelliJ

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967
    
    3

Guys,

Is there a way to do a JPA reverse engineering in IntelliJ. I tried the JPA reverse engineering in MyEclipse IDE which is mainly to generate the Entity classes from the already existing database schemas. So is there anything similiar to that in IntelliJ?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145
    
  27

Actually, I do my reverse engineering at the command-line level myself, using the Apache OpenJPA utility. Never had much luck fighting the IDE plugins, even in Eclipse.


An IDE is no substitute for an Intelligent Developer.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9967
    
    3

What do you mean by command-line level? I'm looking for ways to automatically generate Entity classes from the already existing database tables and I'm looking for ways to do that using IntelliJ.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145
    
  27

Jothi Shankar Kumar wrote:What do you mean by command-line level? I'm looking for ways to automatically generate Entity classes from the already existing database tables and I'm looking for ways to do that using IntelliJ.


I mean quite simply that I don't depend on the IDE to generate the Entity classes. I use the stand-alone java application from the "C:" prompt, if you want to call it that.

I don't regenerate classes very often, so it's not worth making an IDE function of it to me. IDE's are supposed to help me, not be a crutch I have to lean on for every little thing.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
See this. It's is an Ant task, and can thus be driven from within IntelliJ.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA reverse engineering in IntelliJ
 
It's not a secret anymore!