-->
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.  [ 7 posts ] 
Author Message
 Post subject: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Wed Sep 23, 2009 6:21 pm 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
I am having a lot of problems with Hibernate tools in Eclipse Galileo on Mac. I was wondering if anyone else is experiencing problems as well.

My problems are (Note: These issues were not present when using Eclipse 3.4 on Mac.):

- for a composite-id, using a static inner class, the Hibernate Configuration -> Session Factory says the class is not found
https://forum.hibernate.org/viewtopic.php?f=6&t=999852

- custom UserTypes are not found for properties via the Hibernate Configuration -> Session Factory

Code:
org.hibernate.MappingException: Could not determine type for: com.project.hib.types.AlertTypeEnum, for columns: [org.hibernate.mapping.Column(alert_type)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
at org.hibernate.mapping.Property.isValid(Property.java:185)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:440)
at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
at org.hibernate.console.ConsoleConfiguration$3.execute(ConsoleConfiguration.java:505)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:94)
at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:500)
at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)
at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


I am using JDK 1.6 for compilation/execution but the Eclipse IDE is executing with JDK 1.5.
Hibernate Core is 3.3.2GA

Any ideas?

Thanks
- Doug


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Thu Sep 24, 2009 6:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
What version of Hibernate tools are you using in the two scenarios ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Thu Sep 24, 2009 10:04 am 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
I have set the update site to http://download.jboss.org/jbosstools/up ... tly/trunk/

From "What is already installed"

Hibernate Tools
org.hibernate.eclipse.feature.feature.group
3.3.0.v200909220047N-H103-M4

Let me know if you need anything else.


Note: I backed off to JDK 1.5 and everything is working fine now. While not acceptable as we are using 1.6 third party libraries, it is a work around to at least get Hibernate tools working for our needs at the moment.


Thanks
- Doug


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Mon Sep 28, 2009 9:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Are you running Eclipse with Java 6 ?

This could be caused by running Eclipse with Java 5 but trying to load classes that is compiled with Java 6!?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Mon Sep 28, 2009 9:53 am 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
I was running Eclipse in JDK 1.5 but had set my project properties to compile and run in 1.6. We have to have the project set to 1.6 as we are using third party binaries that have been compiled in 1.6. When running our app, we have had no problems with Hibernate. The only issue we had was executing Hibernate Tools.

The issue then makes sense if Hibernate Tools is running in 1.5 but we have code compiled in 1.6. Is there a way to have the tools execute in 1.6?

On the Mac, Eclipse (Cocoa) cannot run under JDK 1.5 due to SWT 1.5 limitation.


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Tue Sep 29, 2009 8:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, just run Eclipse with Java 6 and not Java 5.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Issues w/ Hibernate Tools in Eclipse 3.5 Galileo on Mac
PostPosted: Tue Sep 29, 2009 10:12 am 
Beginner
Beginner

Joined: Mon Aug 22, 2005 1:22 am
Posts: 36
I would if I could...but it is well documented that Eclipse cannot run under 1.6.

However, I do have a work around that will require a complete build when I switch between 1.5/1.6 depending upon what I need.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.