-->
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.  [ 8 posts ] 
Author Message
 Post subject: Hibernate Freemarker context variables List
PostPosted: Thu Oct 12, 2006 12:11 pm 
Newbie

Joined: Wed Sep 06, 2006 10:06 am
Posts: 11
Location: Lisbon, Portugal
Hi Forum,

I'm starting to edit the default templates but i'm not being able to find any list of which class each context variable represent, does someone knows where i could find it ?

Here is the ones that i've found :

Post by Max somewhere in JIRA
Quote:
cfg = org.hibernate.mapping.Configuration
pojo = PojoClass
c2j = Cfg2JavaTool
c2h = Cfg2HbmTool
version = tool version number
date = DateTool
templates = used to e.g. create a file from a ftl template

importContext is something that is very much exporter and context dependent and not something that should be "global".
e.g. pojo's importContext is for that class and not for others. so if you need an additional importcontext you just create one.


hmgs = HibernateMappingGlobalSettings
clazz = ???? (I believe that's like pojo but just can't figure out what interface that should implement)
date = ???? (I didn't found any DateTool class)

If you found something relevant that should be here too please post it.

Thank's in advance

_________________
António Silva


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 12:36 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
clazz is either a PersistentClass or a Component

guess its time to get the doc updated about this...anyone up for it ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 12:51 pm 
Newbie

Joined: Wed Sep 06, 2006 10:06 am
Posts: 11
Location: Lisbon, Portugal
Yes, that will be a great help cause the documentation is very scarce about this, all the info is spread in the foruns.

_________________
António Silva


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 12:54 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
anyone (e.g. you) up for doing it ? You already collected the info... :)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 1:34 pm 
Newbie

Joined: Wed Sep 06, 2006 10:06 am
Posts: 11
Location: Lisbon, Portugal
The word newbie, in the left, below my nickname doesn't scare you ? :)

Well really i don't feel that i've the knowlegde to build a good document about this. Maybe in a month.

_________________
António Silva


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 2:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I were also a newbie once .... not scared ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 10:39 am 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
i woul be willing to help
i would need the links etc and the format expected like you hibernate doc sutff or wiki.

I am impressed about this exporter and would like to hel make it clearler and easier to use.

I was able to use the eclpse ide tools to make the ren.eng file but got null pointer execeptions when i ran them ... but the ant task works ok now ... right click and fill in ant properties

_________________
LET IT BE :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 11:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
check out hibernate tools from svn and look in the doc folder.

add the docs somewhere in there and submit a patch to our jira.

_________________
Max
Don't forget to rate


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