-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: [Ann] Hibernator 0.9.6 - Hibernate Eclipse plugin
PostPosted: Mon Nov 03, 2003 4:01 am 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
I have (finally) released another Hibernator and it includes some fixes which make it heaps more usable and stable.

Changes

* 0.9.6

- added cut/copy/paste/select all to query view
- added ID to results view
- progress monitor to connect and query
- upgraded to Hibernate 2.0.3
- added log4j.jar into the plugin
- Fixed Log to accept logging before being displayed
- Fixed Clear Log image
- Changed from default Eclipse logo to Hibernate logo
- bring results view in focus on query

Release Notes

*** Hibernator - Hibernate plugin for Eclipse ***

Provides an Eclipse to common Hibernate tasks such as Creating / Updating a Database Schema, running Hibernate queries and creating simple Hibernate Mapping documents

Note this plugin will only work with Eclipse 2 (WSAD 5) and above. Queries and Schema features are Hibernate2 only

* Installation

- Unzip hibernator-0.9.x.zip into
- Restart Eclipse

- If you downloaded hibernator-0.9.x-nolibs.zip then you will need to add the following .jars that come with Hibernate
- xml-apis.jar
- xerces.jar
- commons-beanutils.jar
- commons-collections.jar
- commons-lang.jar
- commons-logging.jar
- dom4j.jar
- hibernate2.jar
- odmg.jar
- cglib-asm.jar
- log4j.jar

* Connecting to a Database

- Open Hibernate Perspective
- Right click in connection view and select "Add"
- Select one or more projects from the list (All *.hbm.xml documents in the selected projects are Configured into Hibernate)
- Click next and enter the Database details (I will change this so you can select a hibernate.properties file instead)
- Click finish
- Click on the Hibernate Log View
- Select and right click on the new connection. Click on "Connect!"
- Confirm the mappings and connection are ok in the Log View

- Simply hit "Connect!" on any other connections to prepare them for Query or Schema Update/Create


* Running a query

- Make sure you have created and connected to a database as above
- Type your query into the "Query View" and hit "Execute"
- Not the table of results in the "Results View" or any errors in the "Log View"


* Updating / Creating Schema

- Make sure you have created and connected to a database as above
- Click on Create or Update Schema in the "Query View"
- Note the results in the "Log View"


* Creating a simple mapping document

- Go to menu Window->Show View->Other and select Hibernator
- Open up some Java source and the plugin will either display the mapping file .hbm.xml or a generated version
- To save the contents of the mapping file right click in the window and select "Save"



Report any bugs / Submit patches to - http://sourceforge.net/projects/hibernator


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 4:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Its looking really nice, from what I can see ...

but:

Code:
!ENTRY org.eclipse.ui 4 4 Nov 03, 2003 19:24:32.100
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Nov 03, 2003 19:24:32.100
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:393)
   at java.util.Properties.setProperty(Properties.java:102)
   at net.sf.hibernator.views.ConnectionSet.save(ConnectionSet.java:71)
   at net.sf.hibernator.views.ConnectionSet.add(ConnectionSet.java:32)
   at net.sf.hibernator.views.ConnectionView.add(ConnectionView.java:237)
   at net.sf.hibernator.views.ConnectionView.access$1(ConnectionView.java:228)
   at net.sf.hibernator.views.ConnectionView$3.run(ConnectionView.java:136)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:541)
   at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:494)
   at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:466)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2173)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1863)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347)
   at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330)
   at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
   at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
   at org.eclipse.core.launcher.Main.run(Main.java:765)
   at org.eclipse.core.launcher.Main.main(Main.java:599)



Whenever I try to "Add".


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 9:26 am 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
Yes I must tighten up the validation on the wizard. I think you haven't selected a dialect (used for the update/create schema)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 9:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Actually, I did select everything....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 03, 2003 9:58 am 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
Oh.

Hmmmm. I'll sleep on it :)

Thanks


Top
 Profile  
 
 Post subject: Disconnect?
PostPosted: Mon Nov 03, 2003 9:38 pm 
Beginner
Beginner

Joined: Fri Sep 05, 2003 7:21 am
Posts: 27
Location: Sweden
Having no problem to connect, but disconnecting is harder. (There is no [connection]-->right click->"Disconnect" option)
:-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 4:07 am 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
Maybe an explicit disconnect would be good. What actually happens now is if you connect again it will just disconnect any previous connection if one existed.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 11:32 am 
Newbie

Joined: Tue Aug 26, 2003 9:45 am
Posts: 17
Location: Toronto, Canada
[quote="gavin"]Its looking really nice, from what I can see ...

but:

[code]!ENTRY org.eclipse.ui 4 4 Nov 03, 2003 19:24:32.100
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Nov 03, 2003 19:24:32.100
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at java.util.Properties.setProperty(Properties.java:102)
at
...


I get the same thing, both in Eclipse 3.0M4, and 2.1.1. Everything is selected properly, using Oracle dialect.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 11:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Funnily enough, when I tried to demonstrate this problem to Daniel in Starbucks yesterday, I couldn't reproduce it. Strange.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 4:28 pm 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
Maybe it was just thriving in the capitalist atmosphere


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 9:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Damn straight.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.