Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA reverse engineering in IntelliJ

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18218
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this. It's is an Ant task, and can thus be driven from within IntelliJ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic