Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Hibernate

I'm learning hibernate and I am running into some issues. I'm reading "Harnessing Hibernate" by O'Reilly. They explain everything using ANT, but since I want to avoid writing a huge build.xml file, I'm trying to get it to work with IntelliJ.

I managed to make a mapping according to a DB table in a MySQL database, and wrote the bean for it. It worked, but I can't find any information on how to generate beans and SQL code, or how to reverse engineer with IntelliJ. I found loads of tutorials about Eclipse, using JBOSS Hibernate tools plugin, and the site claims this support for generating code is already in the standard installation of IntelliJ.

Am I forgetting some configuration such as adding libraries? I'm trying to find this out but I'm desperate now. Please don't suggest me to use Eclipse, I need IntelliJ for my current role.

like image 558
toomuchcs Avatar asked Jul 25 '10 21:07

toomuchcs


1 Answers

AFAIK, IntelliJ IDEA includes the complete JPA/Hibernate support in its Ultimate Edition:

Generating Persistence Mappings from Database Schema

IntelliJ IDEA allows you to quickly generate persistence mappings from any database schema: Generating Persistance Mappings

alt text
(source: jetbrains.com)

Now, the question is, what edition of Intellij IDEA are you using?

like image 91
Pascal Thivent Avatar answered Oct 06 '22 01:10

Pascal Thivent