Feedback:
Downloaded CVS versions of Hibernate 3.0 and Hibernate extentions.
These were compiled and used for the experiment. These versions
seem to solve the 2 problems I had (class not found and the getter/setters
for the ide were not gernerated, please see
http://forum.hibernate.org/viewtopic.php?t=939880 on latter problem).
Below I have the log. Just added this in case anyone is interested.
Please note the warnings related to velocity. I don't know if tis is related to
the condfiguration files or not (I cannot seem to add the pointer to the
configuration file in the new XML format). Will post this question in the relevant
linle (
http://opensource.atlassian.com/project ... se/HBX-112).
Regards,
Hugo Ferreira.
Logg output:
---------------
Buildfile: /home/hugof/workspace/hiber3/build.xml
generatesources:
[hibernatetool] Executing org.hibernate.tool.ant.Hbm2JavaGeneratorTask@e2cb55
[hibernatetool] 15 Mar 2005 14:40:34.007 [INFO] [main] [org.hibernate.cfg.Environment] - Hibernate 3.0rc1
[hibernatetool] 15 Mar 2005 14:40:34.013 [INFO] [main] [org.hibernate.cfg.Environment] - hibernate.properties not found
[hibernatetool] 15 Mar 2005 14:40:34.019 [INFO] [main] [org.hibernate.cfg.Environment] - using CGLIB reflection optimizer
[hibernatetool] 15 Mar 2005 14:40:34.024 [INFO] [main] [org.hibernate.cfg.Environment] - using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 15 Mar 2005 14:40:34.038 [INFO] [main] [org.hibernate.cfg.Configuration] - Mapping file: /home/hugof/workspace/hiber3/src/pt/Child.hbm.xml
[hibernatetool] 15 Mar 2005 14:40:34.143 [DEBUG] [main] [org.hibernate.util.DTDEntityResolver] - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 15 Mar 2005 14:40:34.146 [DEBUG] [main] [org.hibernate.util.DTDEntityResolver] - found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[hibernatetool] 15 Mar 2005 14:40:34.430 [INFO] [main] [org.hibernate.cfg.HbmBinder] - Mapping class: pt.Child -> browser.actor
[hibernatetool] 15 Mar 2005 14:40:34.444 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: id -> idactor
[hibernatetool] 15 Mar 2005 14:40:34.477 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: name -> nameac
[hibernatetool] 15 Mar 2005 14:40:34.481 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: email -> email
[hibernatetool] 15 Mar 2005 14:40:34.483 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: address -> address
[hibernatetool] 15 Mar 2005 14:40:34.488 [INFO] [main] [org.hibernate.cfg.Configuration] - Mapping file: /home/hugof/workspace/hiber3/src/pt/Parent.hbm.xml
[hibernatetool] 15 Mar 2005 14:40:34.513 [DEBUG] [main] [org.hibernate.util.DTDEntityResolver] - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 15 Mar 2005 14:40:34.518 [DEBUG] [main] [org.hibernate.util.DTDEntityResolver] - found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[hibernatetool] 15 Mar 2005 14:40:34.543 [INFO] [main] [org.hibernate.cfg.HbmBinder] - Mapping class: pt.Parent -> browser.typelocalactor
[hibernatetool] 15 Mar 2005 14:40:34.578 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: id -> idtla
[hibernatetool] 15 Mar 2005 14:40:34.582 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: name -> nametla
[hibernatetool] 15 Mar 2005 14:40:34.584 [DEBUG] [main] [org.hibernate.cfg.HbmBinder] - Mapped property: description -> desctla
[hibernatetool] 15 Mar 2005 14:40:34.739 [DEBUG] [main] [org.hibernate.tool.hbm2x.template] - CommonsLogLogSystem name is 'org.hibernate.tool.hbm2x.template'
[hibernatetool] 15 Mar 2005 14:40:34.742 [INFO] [main] [org.hibernate.tool.hbm2x.template] - **************************************************************
[hibernatetool] 15 Mar 2005 14:40:34.744 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Starting Jakarta Velocity v1.4
[hibernatetool] 15 Mar 2005 14:40:34.745 [INFO] [main] [org.hibernate.tool.hbm2x.template] - RuntimeInstance initializing.
[hibernatetool] 15 Mar 2005 14:40:34.747 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[hibernatetool] 15 Mar 2005 14:40:34.749 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Trying to use logger class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] 15 Mar 2005 14:40:34.751 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Using logger class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] 15 Mar 2005 14:40:34.762 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[hibernatetool] 15 Mar 2005 14:40:34.770 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
[hibernatetool] 15 Mar 2005 14:40:34.772 [INFO] [main] [org.hibernate.tool.hbm2x.template] - FileResourceLoader : initialization starting.
[hibernatetool] 15 Mar 2005 14:40:34.774 [INFO] [main] [org.hibernate.tool.hbm2x.template] - FileResourceLoader : adding path '.'
[hibernatetool] 15 Mar 2005 14:40:34.776 [INFO] [main] [org.hibernate.tool.hbm2x.template] - FileResourceLoader : initialization complete.
[hibernatetool] 15 Mar 2005 14:40:34.778 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] 15 Mar 2005 14:40:34.782 [INFO] [main] [org.hibernate.tool.hbm2x.template] - ClasspathResourceLoader : initialization starting.
[hibernatetool] 15 Mar 2005 14:40:34.784 [INFO] [main] [org.hibernate.tool.hbm2x.template] - ClasspathResourceLoader : initialization complete.
[hibernatetool] 15 Mar 2005 14:40:34.798 [INFO] [main] [org.hibernate.tool.hbm2x.template] - ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[hibernatetool] 15 Mar 2005 14:40:34.800 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Default ResourceManager initialization complete.
[hibernatetool] 15 Mar 2005 14:40:34.806 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[hibernatetool] 15 Mar 2005 14:40:34.818 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[hibernatetool] 15 Mar 2005 14:40:34.826 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[hibernatetool] 15 Mar 2005 14:40:34.835 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Loaded System Directive: org.apache.velocity.runtime.directive.Include
[hibernatetool] 15 Mar 2005 14:40:34.841 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[hibernatetool] 15 Mar 2005 14:40:35.177 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Created: 20 parsers.
[hibernatetool] 15 Mar 2005 14:40:35.198 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : initialization starting.
[hibernatetool] 15 Mar 2005 14:40:35.200 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : adding VMs from VM library template : VM_global_library.vm
[hibernatetool] 15 Mar 2005 14:40:35.212 [ERROR] [main] [org.hibernate.tool.hbm2x.template] - ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[hibernatetool] 15 Mar 2005 14:40:35.214 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[hibernatetool] 15 Mar 2005 14:40:35.216 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : VM library template macro registration complete.
[hibernatetool] 15 Mar 2005 14:40:35.219 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : allowInline = true : VMs can be defined inline in templates
[hibernatetool] 15 Mar 2005 14:40:35.221 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[hibernatetool] 15 Mar 2005 14:40:35.223 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[hibernatetool] 15 Mar 2005 14:40:35.225 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : messages on : VM system will output logging messages
[hibernatetool] 15 Mar 2005 14:40:35.227 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : autoload off : VM system will not automatically reload global library macros
[hibernatetool] 15 Mar 2005 14:40:35.231 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocimacro : initialization complete.
[hibernatetool] 15 Mar 2005 14:40:35.233 [INFO] [main] [org.hibernate.tool.hbm2x.template] - Velocity successfully started.
[hibernatetool] 15 Mar 2005 14:40:35.399 [INFO] [main] [org.hibernate.tool.hbm2x.template] - ResourceManager : found pojo/javaclass.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] 15 Mar 2005 14:40:35.427 [WARN] [main] [org.hibernate.tool.hbm2x.template] - Warning! The iterative is an Iterator in the #foreach() loop at [0,0] in template pojo/javaclass.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.
[hibernatetool] 15 Mar 2005 14:40:35.598 [WARN] [main] [org.hibernate.tool.hbm2x.template] - Warning! The iterative is an Iterator in the #foreach() loop at [0,0] in template pojo/javaclass.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.
[hibernatetool] 15 Mar 2005 14:40:35.604 [INFO] [main] [org.hibernate.tool.hbm2x.POJOExporter] - Writing pt.Child to /home/hugof/workspace/hiber3/src/pt/Child.java
[hibernatetool] 15 Mar 2005 14:40:35.724 [INFO] [main] [org.hibernate.tool.hbm2x.template] - ResourceManager : found pojo/javaclass.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] 15 Mar 2005 14:40:35.731 [WARN] [main] [org.hibernate.tool.hbm2x.template] - Warning! The iterative is an Iterator in the #foreach() loop at [0,0] in template pojo/javaclass.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.
[hibernatetool] 15 Mar 2005 14:40:35.735 [WARN] [main] [org.hibernate.tool.hbm2x.template] - Warning! The iterative is an Iterator in the #foreach() loop at [0,0] in template pojo/javaclass.vm. Because it's not resetable, if used in more than once, this may lead to unexpected results.
[hibernatetool] 15 Mar 2005 14:40:35.740 [INFO] [main] [org.hibernate.tool.hbm2x.POJOExporter] - Writing pt.Parent to /home/hugof/workspace/hiber3/src/pt/Parent.java
BUILD SUCCESSFUL
Total time: 3 seconds