-->
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.  [ 48 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Custom Templates Issues
PostPosted: Tue Jul 11, 2006 5:36 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi,
I have some issues when I try to customize my own templates using hibernate tools that I have not figured out how to solve yet.
I have two templates daoimpl.ftl and daointerface.ftl that I rewrote for Spring Framework. To this I have my Ant build file that I use to generate my mapping files, dao-interface, dao-implementation and my POJOS. I have a Oracle 10g database with a lot of tables that is my starting point and I need to generate a lot of Dao interfaces and dao implementations and the mapping files.

Now to my Issues:
1) Example:
A table called APP_USER will generate AppUser.hbm.xml, AppUserDao.java, AppUserDaoImpl.java. The way it works now the java classes are placed in a folder com.myapp.persistence.dao and after that I manually creates a folder under com/myapp/persistence/dao/appuser and move the two java classes here and change the package declaration.

This is a time consuming and boring job, there should be another way to do this.

Does anybody know how to add the class name to the package declaration? I tried to change the package declaration in the templates, but it does not work. Ichanged:
Code:
${pojo.getPackageDeclaration()}
to
Code:
${pojo.getPackageDeclaration()}.${declarationName?lower_case}


Does anybody know how to make Hibernate tools or Ant to to create and store the different classes in them?

2) I have a problem with how Hibernate creates the mapping files and the POJOS.
Example: Two tables CUSTOMER and CUSTOMER_PHONE has a relationship where One customer can have many different phone numbers. The generated mapping files and POJO for customer therefor creates a Set to hold all the CustomerPhone objects No Problem. But In my CustomerPhone mapping file I have a
Code:

<many-to-one name="customer" class="com.myapp.business.model.Customer" update="false" insert="false" fetch="select">
            <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
        </many-to-one>

and the POJO therefor have a Customer as an attribute. This is something that I do not want. Does anybody know how to get rid of this problem? I do not want to delete all this manually...

3) I have been reading on the forum how to add code for toString(), equals() and hashcode(), but I have not come accross any good answers that I feel is usefull for me... I do not want to go in to my mapping files and manually add meta tags for every attribute for making this possible, there must be another way to do this? And also if there is a way to add it only at the top of the mapping files this is to much work if I need to do this in more that +200 files... Is there any way to configure this in hibernate.reveng.xml?

4) I want to have my POJOS implementing java.io.Serializable and create a private static final long serialVersionUID. Is there any way to do this?

I am really thankfull if anybody out there could help me solve this issues...


Top
 Profile  
 
 Post subject: Re: Custom Templates Issues
PostPosted: Wed Jul 12, 2006 3:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Jake123 wrote:
1) Example:
A table called APP_USER will generate AppUser.hbm.xml, AppUserDao.java, AppUserDaoImpl.java. The way it works now the java classes are placed in a folder com.myapp.persistence.dao and after that I manually creates a folder under com/myapp/persistence/dao/appuser and move the two java classes here and change the package declaration.

This is a time consuming and boring job, there should be another way to do this.

Does anybody know how to add the class name to the package declaration? I tried to change the package declaration in the templates, but it does not work. Ichanged:
Code:
${pojo.getPackageDeclaration()}
to
Code:
${pojo.getPackageDeclaration()}.${declarationName?lower_case}


Does anybody know how to make Hibernate tools or Ant to to create and store the different classes in them?


the filepattern in ant is what decide the output filename.
Currently we just do a simple string replace for {class-name} and {package-name} - I guess I could run it through freemarker to allow full power for the user to do it relative to the Context it will run in.

Put it in jira for me to not forget.

Quote:
2) I have a problem with how Hibernate creates the mapping files and the POJOS.
Example: Two tables CUSTOMER and CUSTOMER_PHONE has a relationship where One customer can have many different phone numbers. The generated mapping files and POJO for customer therefor creates a Set to hold all the CustomerPhone objects No Problem. But In my CustomerPhone mapping file I have a
Code:

<many-to-one name="customer" class="com.myapp.business.model.Customer" update="false" insert="false" fetch="select">
            <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
        </many-to-one>

and the POJO therefor have a Customer as an attribute. This is something that I do not want. Does anybody know how to get rid of this problem? I do not want to delete all this manually...


Use recent version and read the docs about reveng.xml and many-to-one ;)

Quote:
3) I have been reading on the forum how to add code for toString(), equals() and hashcode(), but I have not come accross any good answers that I feel is usefull for me... I do not want to go in to my mapping files and manually add meta tags for every attribute for making this possible, there must be another way to do this? And also if there is a way to add it only at the top of the mapping files this is to much work if I need to do this in more that +200 files... Is there any way to configure this in hibernate.reveng.xml?


I plan on adding support for adding meta attributes in general; but it won't solve the general problem of it being rather impossible to generate a proper tostring and even more hard equals and hashcode.

If you have a suggestion (that will actually work in most cases, including detached object in sets) then let me know ;)

Quote:
4) I want to have my POJOS implementing java.io.Serializable and create a private static final long serialVersionUID. Is there any way to do this?


afaik we automatically implement Serializable, right ?

Adding serialVersionUID blindly is wrong IMO. See http://opensource.atlassian.com/project ... se/HBX-444

Hope it helps ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Custom Templates Issues
PostPosted: Wed Jul 12, 2006 11:00 am 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
I committed the #1 issue in JIRA, I will look in to the other answers you gave me and see if I can solve them.

Thanks,
Jacob


Top
 Profile  
 
 Post subject: Re: Custom Templates Issues
PostPosted: Thu Jul 13, 2006 11:55 am 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
I tried to solve the many-to-one issue that i described in #2

In my reveng.xml I added:
Code:
<table schema="MYSCHEMA" name="CUSTOMER_EMAIL">
      <foreign-key constraint-name="customer">
         <many-to-one property="customer" exclude="true"/>                           
      </foreign-key>
</table>

to exclude the relationship.... and I am using the latest version (Beta6) and this is how the manual do it... What do I do wrong?

How long will it take to add the package changes that I submitted in Jira? Do you need to rebuild a lot or is it a small fix that will be done soon?

Cheers,
Jacob


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 1:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
your constraint-name is probably not correct; the code is currently code sensitive.

regarding your jira then it is probably simple, but I haven't had time to do it yet. need to make sure that I find a good testcase to verify it doesn't break stuff.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 13, 2006 2:25 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
I tried every combination I could think of, but I still cant make it work. I have currently customer.hbm.xml
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jul 13, 2006 1:43:55 PM by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping>
    <class name="Customer" table="CUSTOMER" schema="MYSCHEMA">
        <id name="custNumber" type="java.lang.Long">
            <column name="CUST_NUMBER" precision="22" scale="0" />
            <generator class="assigned" />
        </id>
        <property name="firstName" type="string">
            <column name="FIRST_NAME" length="60" not-null="true" />
        </property>
        <property name="lastName" type="string">
            <column name="LAST_NAME" length="60" not-null="true" />
        </property>
        ...
        ...
        <set name="customerPhones" inverse="true">
            <key>
                <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
            </key>
            <one-to-many class="CustomerPhone" />
        </set>
        <set name="customerEmails" inverse="true">
            <key>
                <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
            </key>
            <one-to-many class="CustomerEmail" />
        </set>
        <set name="customerAddresses" inverse="true">
            <key>
                <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
            </key>
            <one-to-many class="CustomerAddress" />
        </set>
    </class>
</hibernate-mapping>


And for example customerEmail.hbm.xml look like this:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jul 13, 2006 1:43:55 PM by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping>
    <class name="CustomerEmail" table="CUSTOMER_EMAIL" schema="MYSCHEMA">
        <composite-id name="id" class="CustomerEmailId">
            <key-property name="custNumber" type="long">
                <column name="CUST_NUMBER" precision="22" scale="0" />
            </key-property>
            <key-property name="emailType" type="string">
                <column name="EMAIL_TYPE" length="40" />
            </key-property>
            <key-property name="emailAddress" type="string">
                <column name="EMAIL_ADDRESS" length="64" />
            </key-property>
        </composite-id>

        <!-- THIS IS THE ONE THAT I WANT TO TAKE OUT -->
        <many-to-one name="customer" class="Customer" update="false" insert="false" fetch="select">
            <column name="CUST_NUMBER" precision="22" scale="0" not-null="true" />
        </many-to-one>

        <property name="dateEntered" type="date">
            <column name="DATE_ENTERED" length="7" not-null="true" />
        </property>
        <property name="dateModified" type="date">
            <column name="DATE_MODIFIED" length="7" not-null="true" />
        </property>
        <property name="enteredBy" type="string">
            <column name="ENTERED_BY" length="40" not-null="true" />
        </property>
    </class>
</hibernate-mapping>


What would the reveng.xml look like?

Code:
<table schema="MYSCHEMA" name="CUSTOMER_EMAIL">
      <foreign-key constraint-name="CUST_NUMBER">
         <many-to-one property="Customer" exclude="true"/>                           
      </foreign-key>
</table>


I also noticed that in the mapping file it states that <!-- Generated Jul 13, 2006 1:43:55 PM by Hibernate Tools 3.1.0.beta5 --> but I have downloaded the beta 6 and installed that in eclipse and manually change the mapping in the e=xml files becouse of the different build dates that I read about in the forum. So Eclispe states that Hibernate Tools 3.2.0.beta6 is working properly. I use the .jar file that I downloaded with hibernate tools in my projects... so, why does it state an older version of Hibernate tools?

Thanks
Jacob


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 3:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the constraint-name is the name of the foreign key constraint in your database. You should either know that one or can see it in your favorite db explorer tool ...when you find it paste it in that attribute and keep the casing.

regarding beta5 then it looks to me you have a beta5 hibernatetools.jar creeping around in your classpath?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 5:02 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Sorry duplicated postings


Last edited by Jake123 on Fri Jul 14, 2006 5:16 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 5:10 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
sorry duplicated postings


Last edited by Jake123 on Fri Jul 14, 2006 5:16 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 5:12 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
I solved the many-to-one issue thanks to your suggestion, so now I have that problem out of the way. Still having problem with the beta5 though...

I have another question, as I understand it I can define named queries for my dao classes that I want to generate with something like this. (this I found in a posting in JIRA)

Code:
<query name="com.mycom.persistence.Account.findCommercialAccountById">
from Account where accountTypeClass='C' and accountNumber=:accountNumber
<query-param name="accountNumber" type="java.lang.Long" />
</query>


This generates the code
Code:
public List findCommercialAccountById(long accountNumber) {
        Query query = getSession(false)
                .getNamedQuery("com.alldata.ecis.persistence.Account.findCommercialAccountById");
        query.setParameter("accountNumber", accountNumber);
        return query.list();
    }


So my questions are:
1) Where can I find more information about how to do this? I tried the documentation but couldn't find anything usefull
2) In what file do I configure the name queries for reverse engineering?
3) Does it take any special configuration in my ant task to add this feature or does the tools take care of it?

BTW, I have a new issue.... I can generate my Pojo:s using Hibernate Code Generation inside Eclipse, but when I try to do the same code generation from within Ant it doesn't work. Ant writes this:

Code:
generateHibernateDomainObjects:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus (Caused by java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus)
[hibernatetool] java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus

BUILD FAILED
/home/piero/eclipseworkspace/InvestacorpPersistence/build.xml:120: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus (Caused by java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus)


To me it seems that this task only works with Eclipse and not with Ant.... unless you might add some eclipse -jar files....

Thanks again,
Jacob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 15, 2006 2:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Jake123 wrote:

I have another question, as I understand it I can define named queries for my dao classes that I want to generate with something like this. (this I found in a posting in JIRA)

Code:
<query name="com.mycom.persistence.Account.findCommercialAccountById">
from Account where accountTypeClass='C' and accountNumber=:accountNumber
<query-param name="accountNumber" type="java.lang.Long" />
</query>


This generates the code
Code:
public List findCommercialAccountById(long accountNumber) {
        Query query = getSession(false)
                .getNamedQuery("com.alldata.ecis.persistence.Account.findCommercialAccountById");
        query.setParameter("accountNumber", accountNumber);
        return query.list();
    }


So my questions are:
1) Where can I find more information about how to do this? I tried the documentation but couldn't find anything usefull
2) In what file do I configure the name queries for reverse engineering?
3) Does it take any special configuration in my ant task to add this feature or does the tools take care of it?


1: there isn't more docs than what you read about this subject
2: i do not understand this one
3: no special configuration needed, the trigger is that the prefix matches the class name and that you have specificed the query parameters type

Quote:
BTW, I have a new issue.... I can generate my Pojo:s using Hibernate Code Generation inside Eclipse, but when I try to do the same code generation from within Ant it doesn't work. Ant writes this:

Code:
generateHibernateDomainObjects:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus (Caused by java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus)
[hibernatetool] java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus

BUILD FAILED
/home/piero/eclipseworkspace/InvestacorpPersistence/build.xml:120: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus (Caused by java.lang.NoClassDefFoundError: org/eclipse/core/runtime/IStatus)


To me it seems that this task only works with Eclipse and not with Ant.... unless you might add some eclipse -jar files....


the hibernate tools core have *no* dependency on eclipse. Something else is requiring this. Please runt ant with -verbose (as stated) to allow us to see the ful stack trace.

(my first hint is that it has something to do with org.apache.commons since it is that which are throwing a LogConfigurationException)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 15, 2006 9:18 am 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
max wrote:
2: i do not understand this one


What I ment is where do I put the code...
Code:
<query name="com.mycom.persistence.Account.findCommercialAccountById">
from Account where accountTypeClass='C' and accountNumber=:accountNumber
<query-param name="accountNumber" type="java.lang.Long" />
</query>

Shall I create a seperate xml file in my project and then put all my named quaries there or how do I do this? How does the Hibernate Tools finds the right xml-file?

Thanks again,
Jacob


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 16, 2006 5:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
generate in two steps then.

reveng from jdbc

codegen from the generated hbm.xml + your additional hbm.xml's with queries etc.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 1:25 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
thank you for your patient and for the answers you have given me...
But I am still wondering about how to work with this queries... so if a give you an example of what I am trying to do, maybe you can explain to we how and where to do this. The documentation does not help me at all.

I have a table called App_User, with this generated hbm.xml

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jul 17, 2006 10:27:50 AM by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping>
    <class name="AppUser" table="APP_USER" schema="MYSCHEMA">
        <id name="id" type="java.lang.Long">
            <column name="ID" precision="22" scale="0" />
            <generator class="assigned" />
        </id>
        <property name="username" type="String">
            <column name="USERNAME" length="8" not-null="true" unique="true" />
        </property>
        <property name="password" type="string">
            <column name="PASSWORD" length="40" not-null="true" />
        </property>
        <property name="firstName" type="string">
            <column name="FIRST_NAME" length="80" not-null="true" />
        </property>
        <property name="lastName" type="string">
            <column name="LAST_NAME" length="80" not-null="true" />
        </property>
      ...

        <set name="AppUserRoles" inverse="true">
            <key>
                <column name="APP_USER_ID" precision="22" scale="0" not-null="true" />
            </key>
            <one-to-many class="AppUserRole" />
        </set>       
    </class>
</hibernate-mapping>


When I generates my DaoImpl a finder method for findById(Long id) is created, but I also want to generate a findByUsername(String username)
and maybe some other methods. I guess that I should write something like this
Code:
        <query name="com.myapp.persistence.dao.AppUserDaoImpl.findByUsername">
         from AppUser where username=:username
         <query-param name="username" type="String" />
</query>


I tried to add this one in the above appUser.hbm.xml, but it seem like it do not work. Is this the right way to do this? Does this code belong here or sholud it be in some other file? cfg.xml maybe? or a external appUserQueries.hbm.xml? Do I need to make any other mappings for Hibernate Tools to pick this up and generate the extra methods that I want in my dao layer? I could really need some more information about this. So please, could you spend some time answering my (begginners) questions...

Thanks
Jacob


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 5:42 pm 
Regular
Regular

Joined: Mon May 22, 2006 4:28 am
Posts: 56
Location: Göteborg, Sweden
Hi Max,
Have found another issue. WHen I generate my DaoINterfaces and DaoImplementations I end up with my classes generated but Ant gives me an Exception.

Code:
[hibernatetool] freemarker.template.TemplateModelException: No signature of method getJavaTypeName matches (java.lang.Ob
ject,java.lang.Boolean)


I think that this is why I do not see any of the named queries I put in the appUser.hbm.xml...

Here is the full stacktrace:
Code:
C:\DevArea\MyCompanyPersistence>ant  generateHibernateDaoInterfaceClasses -verbose
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.5 in: C:\jdk1.5.0_06\jre
Detected OS: Windows XP
parsing buildfile C:\DevArea\MyCompanyPersistence\build.xml with URI = file:///C:/DevArea/MyCompanyPersistence/build
.xml
Project base dir set to: C:\DevArea\MyCompanyPersistence
[property] Loading Environment env.
Overriding previous definition of reference to pathToToolsLib
Build sequence for target(s) `generateHibernateDaoInterfaceClasses' is [generateHibernateDomainObjects, generateHibernat
eDaoInterfaceClasses]
Complete build sequence is [generateHibernateDomainObjects, generateHibernateDaoInterfaceClasses, generateHibernateDaoIm
plClasses, prepare-mapping, help, compile, generateHibernateMappings, generateHibernateCfgXml, ]

generateHibernateDomainObjects:
Property ${pathToToolsLib} has not been set
     [echo] ${pathToToolsLib}
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2 cr2
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment verifyProperties
[hibernatetool] WARNING: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use
_reflection_optimizer]; update your properties appropriately
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.tool.hbm2x.Version <clinit>
[hibernatetool] INFO: Hibernate Tools 3.1.0.beta5

generateHibernateDaoInterfaceClasses:
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: generic exporter
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Configuration configure
[hibernatetool] INFO: configuring from file: hibernate.cfg.xml
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Environment verifyProperties
[hibernatetool] WARNING: Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use
_reflection_optimizer]; update your properties appropriately
[hibernatetool] Jul 17, 2006 5:31:07 PM org.hibernate.cfg.Configuration doConfigure
[hibernatetool] INFO: Configured SessionFactory: null
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernatetool] INFO: Override file: C:\DevArea\MyCompanyPersistence\hibernate\hibernate.reveng.xml
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Hibernate connection pool size: 20
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: autocommit mode: false
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@spongebob.ic:1521:DEV
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: connection properties: {user=INVWEB, password=****}
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: RDBMS: Oracle, version: Oracle8i Release 8.1.7.2.0 - Production
[hibernatetool] JServer Release 8.1.7.2.0 - Production
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC driver: Oracle JDBC driver, version: 10.1.0.4.0
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.dialect.Dialect <init>
[hibernatetool] INFO: Using dialect: org.hibernate.dialect.OracleDialect
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernatetool] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerL
ookup
[hibernatetool] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional sec
ond-level cache is not recommended)
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic flush during beforeCompletion(): disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic session close at end of transaction: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch size: 15
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch updates for versioned data: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Scrollable result sets: enabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC3 getGeneratedKeys(): disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Connection release mode: auto
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default batch fetch size: 1
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Generate SQL with comments: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Order SQL updates by primary key: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernatetool] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernatetool] INFO: Using ASTQueryTranslatorFactory
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query language substitutions: {}
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JPA-QL strict compliance: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Second-level cache: enabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query cache: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernatetool] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Optimize cache for minimal puts: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Structured second-level cache entries: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Echoing all SQL to stdout
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Statistics: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernatetool] Jul 17, 2006 5:31:08 PM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default entity-mode: pojo
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.APP_USER=Exception while getting index info f
or MySchema.APP_USER
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.APP_USER_ROLE=Exception while getting index i
nfo for MySchema.APP_USER_ROLE
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUSTOMER=Exception while getting index info f
or MySchema.CUSTOMER
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUSTOMER_ACCOUNT=Exception while getting inde
x info for MySchema.CUSTOMER_ACCOUNT
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUSTOMER_ADDRESS=Exception while getting inde
x info for MySchema.CUSTOMER_ADDRESS
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUSTOMER_EMAIL=Exception while getting index
info for MySchema.CUSTOMER_EMAIL
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUSTOMER_PHONE=Exception while getting index
info for MySchema.CUSTOMER_PHONE
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.CUST_ACCT=Exception while getting index info
for MySchema.CUST_ACCT
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.MF_DIRECT_FIN_ACTIVITY=Exception while gettin
g index info for MySchema.MF_DIRECT_FIN_ACTIVITY
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.MF_DISTRIBUTION=Exception while getting index
info for MySchema.MF_DISTRIBUTION
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.MF_NAME_ADDRESS=Exception while getting index
info for MySchema.MF_NAME_ADDRESS
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.MF_POSITION_CURRENT=Exception while getting i
ndex info for MySchema.MF_POSITION_CURRENT
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.MF_SPONSOR=Exception while getting index info
for MySchema.MF_SPONSOR
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_ACCOUNT=Exception while getting index
info for MySchema.TRADING_ACCOUNT
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_ACTIVITY=Exception while getting inde
x info for MySchema.TRADING_ACTIVITY
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_BALANCE=Exception while getting index
info for MySchema.TRADING_BALANCE
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_OPEN_ORDER=Exception while getting in
dex info for MySchema.TRADING_OPEN_ORDER
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_PERFORMANCE=Exception while getting i
ndex info for MySchema.TRADING_PERFORMANCE
[hibernatetool] Jul 17, 2006 5:31:09 PM org.hibernate.cfg.reveng.JDBCReader processIndices
[hibernatetool] WARNING: Exception while trying to get indexinfo on MySchema.TRADING_POSITION=Exception while getting inde
x info for MySchema.TRADING_POSITION
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.connection.DriverManagerConnectionProvider close
[hibernatetool] INFO: cleaning up connection pool: jdbc:oracle:thin:@spongebob.ic:1521:DEV
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\JacobAppUserRoleDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustomerPhoneDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingAccountDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustomerAccountDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\MfDistributionDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\AppUserRoleDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\MfDirectFinActivityDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\MfSponsorDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustomerDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\MfNameAddressDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingActivityDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingOpenOrderDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingPerformanceDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingBalanceDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustomerEmailDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\JacobAppUserDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\TradingPositionDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\MfPositionCurrentDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustomerAddressDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\AppUserDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing daointerface.ftl to C:\DevArea\MyCompanyPersistence\src\main\java\com\MyCompany\persis
tence\dao\CustAcctDao.java
[hibernatetool] Jul 17, 2006 5:31:10 PM freemarker.log.JDK14LoggerFactory$JDK14Logger error
[hibernatetool] SEVERE:

[hibernatetool] No signature of method getJavaTypeName matches (java.lang.Object,java.lang.Boolean)
[hibernatetool] The problematic instruction:
[hibernatetool] ----------
[hibernatetool] ==> ${c2j.getJavaTypeName(clazz.identifierProperty, jdk5)} [on line 30, column 41 in daointerface.ftl]
[hibernatetool] ----------

[hibernatetool] Java backtrace for programmers:
[hibernatetool] ----------
[hibernatetool] freemarker.template.TemplateModelException: No signature of method getJavaTypeName matches (java.lang.Ob
ject,java.lang.Boolean)
[hibernatetool]         at freemarker.ext.beans.MethodMap.getMostSpecific(MethodMap.java:191)
[hibernatetool]         at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:105)
[hibernatetool]         at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
[hibernatetool]         at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
[hibernatetool]         at freemarker.core.Expression.getStringValue(Expression.java:93)
[hibernatetool]         at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
[hibernatetool]         at freemarker.core.Environment.visit(Environment.java:196)
[hibernatetool]         at freemarker.core.MixedContent.accept(MixedContent.java:92)
[hibernatetool]         at freemarker.core.Environment.visit(Environment.java:196)
[hibernatetool]         at freemarker.core.Environment.visit(Environment.java:233)
[hibernatetool]         at freemarker.core.BlockAssignment.accept(BlockAssignment.java:83)
[hibernatetool]         at freemarker.core.Environment.visit(Environment.java:196)
[hibernatetool]         at freemarker.core.MixedContent.accept(MixedContent.java:92)
[hibernatetool]         at freemarker.core.Environment.visit(Environment.java:196)
[hibernatetool]         at freemarker.core.Environment.process(Environment.java:176)
[hibernatetool]         at freemarker.template.Template.process(Template.java:231)
[hibernatetool]         at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:243)
[hibernatetool]         at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
[hibernatetool]         at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
[hibernatetool]         at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
[hibernatetool]         at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:112)
[hibernatetool]         at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:97)
[hibernatetool]         at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:91)
[hibernatetool]         at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:69)
[hibernatetool]         at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
[hibernatetool]         at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:59)
[hibernatetool]         at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
[hibernatetool]         at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:160)
[hibernatetool]         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[hibernatetool]         at org.apache.tools.ant.Task.perform(Task.java:364)
[hibernatetool]         at org.apache.tools.ant.Target.execute(Target.java:341)
[hibernatetool]         at org.apache.tools.ant.Target.performTasks(Target.java:369)
[hibernatetool]         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[hibernatetool]         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[hibernatetool]         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[hibernatetool]         at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[hibernatetool]         at org.apache.tools.ant.Main.runBuild(Main.java:668)
[hibernatetool]         at org.apache.tools.ant.Main.startAnt(Main.java:187)
[hibernatetool]         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[hibernatetool]         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[hibernatetool] An exception occurred while running exporter #2:generic exporter
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.tool.hbm2x.ExporterException: Error while processing template daointerface.ftl
[hibernatetool] freemarker.template.TemplateModelException: No signature of method getJavaTypeName matches (java.lang.Ob
ject,java.lang.Boolean)

BUILD FAILED
C:\DevArea\MyCompanyPersistence\build.xml:148: org.hibernate.tool.hbm2x.ExporterException: Error while processing temp
late daointerface.ftl
        at org.hibernate.tool.ant.HibernateToolTask.reportException(HibernateToolTask.java:194)
        at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:163)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: org.hibernate.tool.hbm2x.ExporterException: Error while processing template daointerface.ftl
        at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:249)
        at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
        at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
        at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
        at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:112)
        at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:97)
        at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:91)
        at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:69)
        at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
        at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:59)
        at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
        at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:160)
        ... 12 more
Caused by: freemarker.template.TemplateModelException: No signature of method getJavaTypeName matches (java.lang.Object,
java.lang.Boolean)
        at freemarker.ext.beans.MethodMap.getMostSpecific(MethodMap.java:191)
        at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:105)
        at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.visit(Environment.java:233)
        at freemarker.core.BlockAssignment.accept(BlockAssignment.java:83)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.process(Environment.java:176)
        at freemarker.template.Template.process(Template.java:231)
        at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:243)
        ... 23 more
--- Nested Exception ---
org.hibernate.tool.hbm2x.ExporterException: Error while processing template daointerface.ftl
        at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:249)
        at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
        at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
        at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
        at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:112)
        at org.hibernate.tool.hbm2x.GenericExporter.exportComponent(GenericExporter.java:97)
        at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:91)
        at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:69)
        at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:93)
        at org.hibernate.tool.hbm2x.GenericExporter.start(GenericExporter.java:59)
        at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
        at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:160)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: freemarker.template.TemplateModelException: No signature of method getJavaTypeName matches (java.lang.Object,
java.lang.Boolean)
        at freemarker.ext.beans.MethodMap.getMostSpecific(MethodMap.java:191)
        at freemarker.ext.beans.OverloadedMethodModel.exec(OverloadedMethodModel.java:105)
        at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
        at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.visit(Environment.java:233)
        at freemarker.core.BlockAssignment.accept(BlockAssignment.java:83)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:196)
        at freemarker.core.Environment.process(Environment.java:176)
        at freemarker.template.Template.process(Template.java:231)
        at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:243)
        ... 23 more

Total time: 4 seconds
C:\DevArea\MyCompanyPersistence>


Any clue on how to fix this error?
BTW: is it possible to upload a file instead of pasting the entire stack trace here?

Thanks again,
Jacob


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 48 posts ]  Go to page 1, 2, 3, 4  Next

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.