Weblog

All | Personal | Sun
« Web service client... | Main | LDAP authentication... »
20051201 Thursday December 01, 2005

Hibernate plugin for NetBeans 5.0 Many developers don't like EJB, JDO technologies and they are using other object/relational persistance and query service for Java like Hibernate. Hibernate lets you develop persistant classes following common Java idiom. The plugin for Hibernate in NetBeans was missing. Recently, I have seen on project of my colleague.
Petr Zajac develops xdoclet plugin for NetBeans that enables Attribute-Oriented Programming for Java. The plugin parses your source code and generates many artifacts such as XML and other stuff. Based on this plugin he did Hibernate plugin.
This plugin allows you to create new POJO beans, add relationships, fields, ....code completion

Of course, the plugin generate all requested configuration files without your endeavour. The plugin is avalaible in SourceForge. You can download sources and nbms here
. I would like to show more plugin's functionality in some next post.
Posted by pblaha ( Dec 01 2005, 06:19:28 PM CET ) Permalink Comments [13]

Trackback URL: http://blogs.sun.com/pblaha/entry/hibernate_plugin_for_netbeans_5
Comments:

I am very much interested in this plug-in as a netbeans developer. If it works on netbeans it would solve a hell of problems for us.

Posted by Rajneesh Aggarwal on December 07, 2005 at 06:30 AM CET #

I am very much interested in this plug-in as a netbeans developer. If it works on netbeans it would solve a hell of problems for us.

Posted by Piotr Górka on December 07, 2005 at 10:13 AM CET #

Many thanks to Petr Blaha that he is blogging about my module. I would like to release new snapshot of my module on the weekend. There will be two new templates:
HibernateUtil - it configures client part of application a creates instance of hibernate Session
beanFacade - simple facade for hib bean

and few bugfixes. If somebody has any idea what is missing please give me feedback. Thanx.

Posted by Petr Zajac on December 07, 2005 at 11:07 PM CET #

How do I change the code generator to force trimmed non-nulls for strings in the POJO. I do a lot of UI work and the user cann't tell the difference between null and "" and " " but from the programming point of view "" is much easier to handle.

Posted by matthew ford on December 07, 2005 at 11:40 PM CET #

The templates are stored on system filesystem (SFS) in velocity/templates folder. SFS shoud be accessible using Bean Browser. Bean Browser is part of OpenAPI support module which is available on autoupdate.

Posted by Petr Zajac on December 11, 2005 at 03:23 PM CET #

Hello! This plugin support also the DB tables into -> javaClass translation? thx

Posted by alain on April 23, 2006 at 01:52 AM CEST #

Hi Can you use this plugin with netbeans modules. if you can how? i just seem to get a "No feature Hibernate found" error message. thanks

Posted by Nick on August 08, 2006 at 09:20 AM CEST #

[Trackback] Last night we posted our newest tutorial, Using Hibernate With the Sun Java Studio Creator IDE . This tutorial shows the essential steps necessary for adding a Hibernate framework to your project, as well as shows now to display the query results in a...

Posted by Insider Scoop From the Tutorial Divas on August 18, 2006 at 11:47 PM CEST #

Hello, I have a problem, i create webservice in netbeans, add libraries of hibernate and when i try to create hibernateBean in the project there is message: no feature hibernate fount. I would like to add that when i create any other projet (web or console) hibernateBeans work pefrect. Do You know where is the problem? What should i do to turn it on in webservice? Regards, Wojtek.

Posted by Wojtek on October 12, 2006 at 10:27 AM CEST #


Is there any chance that support for
hibernate anotations will be added?
Thanks

Posted by Matthew Brady on November 02, 2006 at 05:28 PM CET #

Hi. Is it possible to use hibernate plugin and web services in one project with NetBeans 5.5? I can use them in separately projects but if I add hibernate bean to the project with web services there is the ParceException during build the WebService class. Any idea how to use this in one project? Regards, Artur

Posted by Artur on November 29, 2006 at 03:19 PM CET #

hai! We are new to hibernate spring How to work hibernate in spring MVC with netbeans 5.5 We installed net-sf-spring-netbeans-support.nbm and sf.netbeans.nbxdoclet-update-net-o.5.nbm in netbeans 5.5 Thanks

Posted by govind on December 20, 2006 at 06:12 AM CET #

I am new to hibernate spring How to work hibernate in spring MVC with netbeans 5.5 We installed net-sf-spring-netbeans-support.nbm and sf.netbeans.nbxdoclet-update-net-o.5.nbm in netbeans 5.5 Thanks

Posted by Mukul on April 06, 2007 at 07:08 AM CEST #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Calendar

RSS Feeds

Search

Links

Navigation

Referers

Older blog entries