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.  [ 6 posts ] 
Author Message
 Post subject: Error while processing template seam/find.jsp.ftl
PostPosted: Mon Oct 23, 2006 7:49 am 
Newbie

Joined: Mon Oct 23, 2006 7:35 am
Posts: 4
Location: Zurich, Switzerland
I am trying to generate SEAM code with the newest version of Hibernate Tools; the error below is what I get. This did not seem to occur with 3.2.0 beta 7; should I regress to a stable release or is this issue known, and a fix has already been worked out?

All help appreciated.

Eclipse version: 3.2

Hibernate Tools version: 3.2.0 beta 8

Full stack trace of any exception that occurs:
org.hibernate.tool.hbm2x.ExporterException: Error while processing template seam/find.jsp.ftl
freemarker.core.InvalidReferenceException: Expression field.value.typeName is undefined on line 45, column 6 in seam/find.jsp.ftl.
freemarker.core.InvalidReferenceException: Expression field.value.typeName is undefined on line 45, column 6 in seam/find.jsp.ftl.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 8:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
try and disable many-to-many detection....not sure if the seam codegen can handle many-to-many yet.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 8:31 am 
Newbie

Joined: Mon Oct 23, 2006 7:35 am
Posts: 4
Location: Zurich, Switzerland
max wrote:
try and disable many-to-many detection....not sure if the seam codegen can handle many-to-many yet.


Max, thank you for the quick reply.

This error occurs even when generating the code for one table with no relationships (1..n, m..n, etc.) defined. Could it be something else?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 8:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
composite id's are the normal problem.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 23, 2006 9:14 am 
Newbie

Joined: Mon Oct 23, 2006 7:35 am
Posts: 4
Location: Zurich, Switzerland
max wrote:
composite id's are the normal problem.


Max, you are right; I foolishly assumed that there were primary keys defined on the table that I was mapping (but there was not and hbm.xml mapped all rows to a composite key). I will now assign a primary key and run the tools over it again. I will post to the forum if this fixes it.

Thanks again!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 2:28 pm 
Newbie

Joined: Mon Oct 23, 2006 7:35 am
Posts: 4
Location: Zurich, Switzerland
markyjones wrote:
max wrote:
composite id's are the normal problem.


I will post to the forum if this fixes it.



Yes, I was able to generate the Seam code without error, but now have some errors in deployment - so over to the Seam forums ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.