Hibernate tools -- be able to generate a DAO?

I saw here:

http://plugins.intellij.net/plugin?pr=idea&pluginId=124

That the Hibernate plug-in hasn't been updated since 2005 and is only version 0.7.

Huh? That's 7 years ago.

Perhaps there's another version?

In any case....

Is there an available plug-in that will generate DAO classes for the Entity classes? I'm looking to do less manual coding and preferring to have the IDE do that work for me. It's all boilerplate anyway. Not sure why DAO generation isn't part of Core to begin with, but hopefully soon.

Thanks in advance.

- m

2 comments
Comment actions Permalink

Mork! wrote:

I saw here:

http://plugins.intellij.net/plugin?pr=idea&pluginId=124

That the Hibernate plug-in hasn't been updated since 2005 and is only version 0.7.

Huh? That's 7 years ago.


That is a third party plug-in; not one written by JetBrains. And the reason (I suspect) the developer that wrote it has not updated it is that IntelliJ IDEA Ultimate Edition (not the community edition) includes bundled Hibernate and JPA support. I believe it was added in version 6 (or maybe 7).

See Help > Help Topics > Language and Framework Specific Guidelines > Relational Databases > Hibernate for information on how to enable hibernate support for a project, and it's features. (Of course, also make sure the bundled "Hibernate Support" plugin is enabled.)

You can also watch this video at JetBrains TV: http://tv.jetbrains.net/videocontent/jpa-and-hibernate-support-in-intellij-idea

0
Comment actions Permalink

Hey Mark,

Thanks for your reply.

Yeah, I've seen the video.

Unfortunately, I can't find anything where IDEA will generate even simple DAOs and link them into the project. IMHO, it needs to do more boilerplate coding. It leaves too much to the developer.

If there's an add-on or whatever, that's cool, but I haven't found it (hence this posting).

Do you hand code DAOs for all your entity classes?

I love the IDEA editor, I just want to the tool (for $500) to do more of the boilerplate coding so I can do my business logic.

Thanks,

- m

0

Please sign in to leave a comment.