-->
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.  [ 2 posts ] 
Author Message
 Post subject: Something wrong with my mapping documents???
PostPosted: Thu Jan 06, 2011 4:48 am 
Newbie

Joined: Tue Jan 04, 2011 7:11 am
Posts: 5
First of all, I'm a complete n00b to O/R in general. I have read Harnessing Hibernate and the first few chapters of the Hibernate Reference Manual (to get some details worked out HH lacked).

I'm attempting to get my mapping documents setup for my application, however, hbm2ddl seems to throw an error saying it can not determine type Long for column COMP_ID. I'm posting this in these forums because I assume it is an error with my mapping documents, as opposed to the tool itself. (BTW, hbm2java generated the Java classes fine, and they look like I expected them.)

I hope someone can help me figure out what the heck I'm missing here. Any guidance would be greatly appreciated (and if you have any recommendations on how to better model the data, that would be wonderful as well. Before looking into Hibernate, my data model was much different, but this way should work well for my application as well).

First of all, the error from Ant (with full debugging info):
Code:
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: C:\Users\buhrmande\workspace\TaskCompleterv2\build.xml
parsing buildfile C:\Users\buhrmande\workspace\TaskCompleterv2\build.xml with URI = file:/C:/Users/buhrmande/workspace/TaskCompleterv2/build.xml
Project base dir set to: C:\Users\buhrmande\workspace\TaskCompleterv2
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
parsing buildfile jar:file:/C:/Program%20Files/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/maven-ant-tasks-2.1.1.jar!/org/apache/maven/artifact/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/eclipse/plugins/org.apache.ant_1.7.1.v20100518-1145/lib/maven-ant-tasks-2.1.1.jar!/org/apache/maven/artifact/ant/antlib.xml
[artifact:dependencies] Maven Ant Tasks version: 2.1.1
[artifact:dependencies] Loading Maven settings file: c:\program files\apache-maven-3.0.1\conf\settings.xml
[artifact:dependencies] Using local repository: C:\Users\buhrmande\.m2\repository
[artifact:dependencies] Resolving dependencies...
[artifact:dependencies] Using remote repositories:
  - id=central, url=http://repo1.maven.org/maven2, releases=enabled, snapshots=disabled
  org.apache.maven:super-pom:jar:2.0 (selected)
    hsqldb:hsqldb:jar:1.8.0.7:compile (selected)
    org.hibernate:hibernate:jar:3.2.5.ga:compile (selected)
      net.sf.ehcache:ehcache:jar:1.2.3:compile (selected)
        commons-logging:commons-logging:jar:1.0.4:compile (selected)
        commons-collections:commons-collections:jar:2.1:compile (selected)
      commons-logging:commons-logging:jar:1.0.4:compile (removed - nearer found: 1.0.4)
      commons-logging:commons-logging:jar:1.0.4:compile (selected)
      asm:asm-attrs:jar:1.5.3:compile (selected)
      dom4j:dom4j:jar:1.6.1:compile (selected)
      antlr:antlr:jar:2.7.6:compile (selected)
      cglib:cglib:jar:2.1_3:compile (selected)
        asm:asm:jar:1.5.3:compile (selected)
      asm:asm:jar:1.5.3:compile (removed - nearer found: 1.5.3)
      asm:asm:jar:1.5.3:compile (selected)
      commons-collections:commons-collections:jar:2.1:compile (removed - nearer found: 2.1.1)
      commons-collections:commons-collections:jar:2.1.1:compile (selected)
    org.hibernate:hibernate-tools:jar:3.2.3.GA:compile (selected)
      org.beanshell:bsh:jar:2.0b4:compile (selected)
      freemarker:freemarker:jar:2.3.8:compile (selected)
      org.hibernate:jtidy:jar:r8-20060801:compile (selected)
    org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1:compile (selected)
    log4j:log4j:jar:1.2.14:compile (selected)
Build sequence for target(s) `schema' is [prepare, schema]
Complete build sequence is [prepare, schema, compile, tester, db, codegen, print-classpath, ]
prepare:
    [mkdir] Skipping C:\Users\buhrmande\workspace\TaskCompleterv2\classes because it already exists.
     [copy] com\worldkitchen\data\Completed.hbm.xml omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\com\worldkitchen\data\Completed.hbm.xml is up to date.
     [copy] com\worldkitchen\data\Group.hbm.xml omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\com\worldkitchen\data\Group.hbm.xml is up to date.
     [copy] com\worldkitchen\data\Problem.hbm.xml omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\com\worldkitchen\data\Problem.hbm.xml is up to date.
     [copy] com\worldkitchen\data\Task.hbm.xml omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\com\worldkitchen\data\Task.hbm.xml is up to date.
     [copy] hibernate.cfg.xml omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\hibernate.cfg.xml is up to date.
     [copy] log4j.properties omitted as C:\Users\buhrmande\workspace\TaskCompleterv2\classes\log4j.properties is up to date.
     [copy] No sources found.
schema:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] 03:47:06,483  INFO Environment:514 - Hibernate 3.2.5
[hibernatetool] 03:47:06,490  INFO Environment:547 - hibernate.properties not found
[hibernatetool] 03:47:06,491  INFO Environment:681 - Bytecode provider name : cglib
[hibernatetool] 03:47:06,497  INFO Environment:598 - using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 03:47:06,548  INFO Configuration:1460 - configuring from file: hibernate.cfg.xml
[hibernatetool] 03:47:06,590 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]
[hibernatetool] 03:47:06,591 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 03:47:06,592 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
[hibernatetool] 03:47:06,620 DEBUG Configuration:1387 - dialect=org.hibernate.dialect.HSQLDialect
[hibernatetool] 03:47:06,621 DEBUG Configuration:1387 - connection.driver_class=org.hsqldb.jdbcDriver
[hibernatetool] 03:47:06,621 DEBUG Configuration:1387 - connection.url=jdbc:hsqldb:data/tasks
[hibernatetool] 03:47:06,621 DEBUG Configuration:1387 - connection.username=sa
[hibernatetool] 03:47:06,622 DEBUG Configuration:1387 - connection.password=
[hibernatetool] 03:47:06,622 DEBUG Configuration:1387 - connection.shutdown=true
[hibernatetool] 03:47:06,622 DEBUG Configuration:1387 - connection.pool_size=1
[hibernatetool] 03:47:06,622 DEBUG Configuration:1387 - current_session_context_class=thread
[hibernatetool] 03:47:06,623 DEBUG Configuration:1387 - cache.provider_class=org.hibernate.cache.NoCacheProvider
[hibernatetool] 03:47:06,623 DEBUG Configuration:1387 - jdbc.batch_size=0
[hibernatetool] 03:47:06,624 DEBUG Configuration:1586 - <-org.dom4j.tree.DefaultAttribute@1829e6f [Attribute: name resource value "com/worldkitchen/data/Problem.hbm.xml"]
[hibernatetool] 03:47:06,624  INFO Configuration:553 - Reading mappings from resource : com/worldkitchen/data/Problem.hbm.xml
[hibernatetool] 03:47:06,626 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
[hibernatetool] 03:47:06,627 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 03:47:06,629 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
[hibernatetool] 03:47:06,714  INFO HbmBinder:300 - Mapping class: com.worldkitchen.data.Problem -> PROBLEM
[hibernatetool] 03:47:06,720 DEBUG HbmBinder:1270 - Mapped property: id -> PROBLEM_ID
[hibernatetool] 03:47:06,731 DEBUG HbmBinder:1270 - Mapped property: details -> DETAILS
[hibernatetool] 03:47:06,732 DEBUG HbmBinder:1270 - Mapped property: contactName -> CONTACTNAME
[hibernatetool] 03:47:06,732 DEBUG HbmBinder:1270 - Mapped property: priority -> PRIORITY
[hibernatetool] 03:47:06,733 DEBUG Configuration:1586 - <-org.dom4j.tree.DefaultAttribute@3cc262 [Attribute: name resource value "com/worldkitchen/data/Task.hbm.xml"]
[hibernatetool] 03:47:06,733  INFO Configuration:553 - Reading mappings from resource : com/worldkitchen/data/Task.hbm.xml
[hibernatetool] 03:47:06,735 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
[hibernatetool] 03:47:06,736 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 03:47:06,739 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
[hibernatetool] 03:47:06,756  INFO HbmBinder:300 - Mapping class: com.worldkitchen.data.Task -> TASKS
[hibernatetool] 03:47:06,757 DEBUG HbmBinder:1270 - Mapped property: id -> TASK_ID
[hibernatetool] 03:47:06,758 DEBUG HbmBinder:1270 - Mapped property: title -> TITLE
[hibernatetool] 03:47:06,759 DEBUG HbmBinder:1270 - Mapped property: description -> DESCRIPTION
[hibernatetool] 03:47:06,759 DEBUG HbmBinder:1270 - Mapped property: time -> SCHEDULED_TIME
[hibernatetool] 03:47:06,760 DEBUG HbmBinder:1270 - Mapped property: input -> INPUT_TYPE
[hibernatetool] 03:47:06,761 DEBUG HbmBinder:1270 - Mapped property: start -> START_VALID
[hibernatetool] 03:47:06,762 DEBUG HbmBinder:1270 - Mapped property: end -> END_VALID
[hibernatetool] 03:47:06,763 DEBUG HbmBinder:1270 - Mapped property: days -> DAYS
[hibernatetool] 03:47:06,764 DEBUG HbmBinder:1270 - Mapped property: weeks -> WEEKS
[hibernatetool] 03:47:06,764 DEBUG HbmBinder:1270 - Mapped property: months -> MONTHS
[hibernatetool] 03:47:06,835 DEBUG HbmBinder:1270 - Mapped property: problem -> PROBLEM_ID
[hibernatetool] 03:47:06,839 DEBUG HbmBinder:1270 - Mapped property: completes
[hibernatetool] 03:47:06,840 DEBUG Configuration:1586 - <-org.dom4j.tree.DefaultAttribute@1724a9d [Attribute: name resource value "com/worldkitchen/data/Group.hbm.xml"]
[hibernatetool] 03:47:06,840  INFO Configuration:553 - Reading mappings from resource : com/worldkitchen/data/Group.hbm.xml
[hibernatetool] 03:47:06,842 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
[hibernatetool] 03:47:06,843 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 03:47:06,844 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
[hibernatetool] 03:47:06,855  INFO HbmBinder:300 - Mapping class: com.worldkitchen.data.Group -> GROUP
[hibernatetool] 03:47:06,856 DEBUG HbmBinder:1270 - Mapped property: id -> GROUP_ID
[hibernatetool] 03:47:06,856 DEBUG HbmBinder:1270 - Mapped property: name -> NAME
[hibernatetool] 03:47:06,857 DEBUG HbmBinder:1270 - Mapped property: uniqueName -> UNIQUE_NAME
[hibernatetool] 03:47:06,858  INFO HbmBinder:1422 - Mapping collection: com.worldkitchen.data.Group.tasks -> GROUP_TASKS
[hibernatetool] 03:47:06,861 DEBUG HbmBinder:1270 - Mapped property: tasks
[hibernatetool] 03:47:06,862 DEBUG Configuration:1586 - <-org.dom4j.tree.DefaultAttribute@364641 [Attribute: name resource value "com/worldkitchen/data/Completed.hbm.xml"]
[hibernatetool] 03:47:06,862  INFO Configuration:553 - Reading mappings from resource : com/worldkitchen/data/Completed.hbm.xml
[hibernatetool] 03:47:06,865 DEBUG DTDEntityResolver:38 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
[hibernatetool] 03:47:06,866 DEBUG DTDEntityResolver:40 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 03:47:06,867 DEBUG DTDEntityResolver:50 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
[hibernatetool] 03:47:06,878  INFO HbmBinder:300 - Mapping class: com.worldkitchen.data.Completed -> COMPLETED
[hibernatetool] 03:47:06,879 DEBUG HbmBinder:1270 - Mapped property: id -> COMP_ID
[hibernatetool] 03:47:06,879 DEBUG HbmBinder:1270 - Mapped property: task -> TASK_ID
[hibernatetool] 03:47:06,880 DEBUG HbmBinder:1270 - Mapped property: date -> SCHEDULED_DATE
[hibernatetool] 03:47:06,880 DEBUG HbmBinder:1270 - Mapped property: time -> COMP_TIME
[hibernatetool] 03:47:06,880 DEBUG HbmBinder:1270 - Mapped property: info -> COMP_INFO
[hibernatetool] 03:47:06,881 DEBUG HbmBinder:1270 - Mapped property: user -> COMP_USER
[hibernatetool] 03:47:06,881  INFO Configuration:1541 - Configured SessionFactory:
[hibernatetool] 03:47:06,882 DEBUG Configuration:1542 - properties: {java.vendor=Sun Microsystems Inc., sun.java.launcher=SUN_STANDARD, hibernate.connection.url=jdbc:hsqldb:data/tasks, sun.management.compiler=HotSpot Client Compiler, os.name=Windows 7, sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes, hibernate.current_session_context_class=thread, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., ant.home=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145, java.runtime.version=1.6.0_21-b07, hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider, user.name=buhrmande, hibernate.session_factory_name=, connection.driver_class=org.hsqldb.jdbcDriver, current_session_context_class=thread, user.language=en, sun.boot.library.path=C:\Program Files\Java\jre6\bin, dialect=org.hibernate.dialect.HSQLDialect, java.version=1.6.0_21, user.timezone=America/New_York, connection.shutdown=true, jdbc.batch_size=0, sun.arch.data.model=32, hibernate.connection.shutdown=true, java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86, sun.jnu.encoding=Cp1252, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=Java Platform API Specification, java.class.version=50.0, user.country=US, connection.url=jdbc:hsqldb:data/tasks, java.home=C:\Program Files\Java\jre6, java.vm.info=mixed mode, sharing, os.version=6.1, path.separator=;, connection.password=, java.vm.version=17.0-b17, hibernate.connection.password=, user.variant=, ant.library.dir=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib, hibernate.jdbc.batch_size=0, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=sa, user.home=C:\Users\buhrmande, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\Program Files\Java\jdk1.6.0_20\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Clarify\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\IXOS\bin;C:\Program Files\IXOS\bin;C:\Program Files\IXOS\opt\perl\bin;C:\Program Files\Kofax\Imgctls\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Windows\idmu\common;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\Program Files\IBM\Client Access\Emulator;C:\Program Files\IBM\Client Access\Shared;C:\Program Files\IBM\Client Access\;c:\program files\apache-maven-3.0.1\bin;c:\program files\java\jdk1.6.0_20\bin;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\209\1\.cp, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, connection.username=sa, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.HSQLDialect, java.runtime.name=Java(TM) SE Runtime Environment, java.class.path=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-antlr.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bcel.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bsf.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-log4j.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-oro.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-regexp.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-resolver.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-commons-logging.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-commons-net.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jai.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-javamail.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jdepend.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jmf.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jsch.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-junit.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-launcher.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-netrexx.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-nodeps.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-starteam.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-stylebook.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-swing.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-trax.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-weblogic.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\maven-ant-tasks-2.1.1.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\26\1\.cp\lib\antdebug.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\26\1\.cp\lib\remote.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\27\1\.cp\lib\remoteAnt.jar;C:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;C:\Program Files\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.patch.level=, connection.pool_size=1, java.io.tmpdir=C:\Users\BUHRMA~1\AppData\Local\Temp\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext, user.dir=C:\Users\buhrmande\workspace\TaskCompleterv2, line.separator=
[hibernatetool] , java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=org.hibernate.cache.NoCacheProvider, file.encoding=UTF-8, java.specification.version=1.6, hibernate.connection.pool_size=1}
[hibernatetool] 03:47:06,883 DEBUG Configuration:1120 - processing extends queue
[hibernatetool] 03:47:06,883 DEBUG Configuration:1124 - processing collection mappings
[hibernatetool] 03:47:06,884 DEBUG CollectionSecondPass:41 - Second pass for collection: com.worldkitchen.data.Task.completes
[hibernatetool] 03:47:06,884  INFO HbmBinder:2385 - Mapping collection: com.worldkitchen.data.Task.completes -> COMPLETED
[hibernatetool] 03:47:06,885 DEBUG CollectionSecondPass:57 - Mapped collection key: COMP_ID, one-to-many: com.worldkitchen.data.Completed
[hibernatetool] 03:47:06,885 DEBUG CollectionSecondPass:41 - Second pass for collection: com.worldkitchen.data.Group.tasks
[hibernatetool] 03:47:06,886 DEBUG CollectionSecondPass:57 - Mapped collection key: GROUP_ID, index: ORDER_NUMBER, element: TASK_ID
[hibernatetool] 03:47:06,886 DEBUG Configuration:1135 - processing native query and ResultSetMapping mappings
[hibernatetool] 03:47:06,888 DEBUG Configuration:1143 - processing association property references
[hibernatetool] 03:47:06,888 DEBUG Configuration:1165 - processing foreign key constraints
[hibernatetool] 03:47:06,889 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:06,889 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:06,889 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Group
[hibernatetool] 03:47:06,889 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:06,890 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Problem
[hibernatetool] 03:47:06,902 DEBUG Hbm2DDLExporter:138 - org.hibernate.tool.hbm2x.Hbm2DDLExporter outputdir:C:\Users\buhrmande\workspace\TaskCompleterv2\src path: []
[hibernatetool] 03:47:06,969  INFO Version:15 - Hibernate Tools 3.2.2.GA
[hibernatetool] 03:47:06,972 DEBUG TemplateHelper:149 - putInContext exporter=org.hibernate.tool.hbm2x.Hbm2DDLExporter@12b6c89
[hibernatetool] 03:47:06,972 DEBUG TemplateHelper:149 - putInContext c2h=org.hibernate.tool.hbm2x.Cfg2HbmTool@1e2befa
[hibernatetool] 03:47:06,972 DEBUG TemplateHelper:149 - putInContext c2j=org.hibernate.tool.hbm2x.Cfg2JavaTool@1682598
[hibernatetool] 03:47:06,972 DEBUG TemplateHelper:149 - putInContext outputdir=C:\Users\buhrmande\workspace\TaskCompleterv2\src
[hibernatetool] 03:47:06,973 DEBUG TemplateHelper:149 - putInContext template_path=[Ljava.lang.String;@7c3885
[hibernatetool] 03:47:06,973 DEBUG TemplateHelper:149 - putInContext java.vendor=Sun Microsystems Inc.
[hibernatetool] 03:47:06,973 DEBUG TemplateHelper:149 - putInContext sun.java.launcher=SUN_STANDARD
[hibernatetool] 03:47:06,973 DEBUG TemplateHelper:149 - putInContext hibernate.connection.url=jdbc:hsqldb:data/tasks
[hibernatetool] 03:47:06,974 DEBUG TemplateHelper:149 - putInContext sun.management.compiler=HotSpot Client Compiler
[hibernatetool] 03:47:06,974 DEBUG TemplateHelper:149 - putInContext os.name=Windows 7
[hibernatetool] 03:47:06,974 DEBUG TemplateHelper:149 - putInContext sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
[hibernatetool] 03:47:06,974 DEBUG TemplateHelper:149 - putInContext hibernate.current_session_context_class=thread
[hibernatetool] 03:47:06,974 DEBUG TemplateHelper:149 - putInContext sun.desktop=windows
[hibernatetool] 03:47:06,975 DEBUG TemplateHelper:149 - putInContext java.vm.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 03:47:06,977 DEBUG TemplateHelper:149 - putInContext ant.home=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145
[hibernatetool] 03:47:06,977 DEBUG TemplateHelper:149 - putInContext java.runtime.version=1.6.0_21-b07
[hibernatetool] 03:47:06,977 DEBUG TemplateHelper:149 - putInContext hibernate.cache.provider_class=org.hibernate.cache.NoCacheProvider
[hibernatetool] 03:47:06,977 DEBUG TemplateHelper:149 - putInContext user.name=buhrmande
[hibernatetool] 03:47:06,977 DEBUG TemplateHelper:149 - putInContext hibernate.session_factory_name=
[hibernatetool] 03:47:06,978 DEBUG TemplateHelper:149 - putInContext connection.driver_class=org.hsqldb.jdbcDriver
[hibernatetool] 03:47:06,978 DEBUG TemplateHelper:149 - putInContext current_session_context_class=thread
[hibernatetool] 03:47:06,978 DEBUG TemplateHelper:149 - putInContext user.language=en
[hibernatetool] 03:47:06,978 DEBUG TemplateHelper:149 - putInContext sun.boot.library.path=C:\Program Files\Java\jre6\bin
[hibernatetool] 03:47:06,978 DEBUG TemplateHelper:149 - putInContext dialect=org.hibernate.dialect.HSQLDialect
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext java.version=1.6.0_21
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext user.timezone=America/New_York
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext connection.shutdown=true
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext jdbc.batch_size=0
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext sun.arch.data.model=32
[hibernatetool] 03:47:06,979 DEBUG TemplateHelper:149 - putInContext hibernate.connection.shutdown=true
[hibernatetool] 03:47:06,980 DEBUG TemplateHelper:149 - putInContext java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed
[hibernatetool] 03:47:06,980 DEBUG TemplateHelper:149 - putInContext sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
[hibernatetool] 03:47:06,980 DEBUG TemplateHelper:149 - putInContext sun.jnu.encoding=Cp1252
[hibernatetool] 03:47:06,980 DEBUG TemplateHelper:149 - putInContext file.encoding.pkg=sun.io
[hibernatetool] 03:47:06,981 DEBUG TemplateHelper:149 - putInContext file.separator=\
[hibernatetool] 03:47:06,981 DEBUG TemplateHelper:149 - putInContext java.specification.name=Java Platform API Specification
[hibernatetool] 03:47:06,981 DEBUG TemplateHelper:149 - putInContext java.class.version=50.0
[hibernatetool] 03:47:06,982 DEBUG TemplateHelper:149 - putInContext user.country=US
[hibernatetool] 03:47:06,983 DEBUG TemplateHelper:149 - putInContext connection.url=jdbc:hsqldb:data/tasks
[hibernatetool] 03:47:06,984 DEBUG TemplateHelper:149 - putInContext java.home=C:\Program Files\Java\jre6
[hibernatetool] 03:47:06,984 DEBUG TemplateHelper:149 - putInContext java.vm.info=mixed mode, sharing
[hibernatetool] 03:47:06,984 DEBUG TemplateHelper:149 - putInContext os.version=6.1
[hibernatetool] 03:47:06,985 DEBUG TemplateHelper:149 - putInContext path.separator=;
[hibernatetool] 03:47:06,985 DEBUG TemplateHelper:149 - putInContext connection.password=
[hibernatetool] 03:47:06,985 DEBUG TemplateHelper:149 - putInContext java.vm.version=17.0-b17
[hibernatetool] 03:47:06,985 DEBUG TemplateHelper:149 - putInContext hibernate.connection.password=
[hibernatetool] 03:47:06,985 DEBUG TemplateHelper:149 - putInContext user.variant=
[hibernatetool] 03:47:06,986 DEBUG TemplateHelper:149 - putInContext ant.library.dir=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib
[hibernatetool] 03:47:06,986 DEBUG TemplateHelper:149 - putInContext hibernate.jdbc.batch_size=0
[hibernatetool] 03:47:06,986 DEBUG TemplateHelper:149 - putInContext java.awt.printerjob=sun.awt.windows.WPrinterJob
[hibernatetool] 03:47:06,986 DEBUG TemplateHelper:149 - putInContext sun.io.unicode.encoding=UnicodeLittle
[hibernatetool] 03:47:06,987 DEBUG TemplateHelper:149 - putInContext awt.toolkit=sun.awt.windows.WToolkit
[hibernatetool] 03:47:06,987 DEBUG TemplateHelper:149 - putInContext hibernate.connection.username=sa
[hibernatetool] 03:47:06,987 DEBUG TemplateHelper:149 - putInContext user.home=C:\Users\buhrmande
[hibernatetool] 03:47:06,988 DEBUG TemplateHelper:149 - putInContext java.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 03:47:06,988 DEBUG TemplateHelper:149 - putInContext java.library.path=C:\Program Files\Java\jdk1.6.0_20\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Clarify\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\IXOS\bin;C:\Program Files\IXOS\bin;C:\Program Files\IXOS\opt\perl\bin;C:\Program Files\Kofax\Imgctls\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Windows\idmu\common;C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\Program Files\IBM\Client Access\Emulator;C:\Program Files\IBM\Client Access\Shared;C:\Program Files\IBM\Client Access\;c:\program files\apache-maven-3.0.1\bin;c:\program files\java\jdk1.6.0_20\bin;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\209\1\.cp
[hibernatetool] 03:47:06,988 DEBUG TemplateHelper:149 - putInContext java.vendor.url=http://java.sun.com/
[hibernatetool] 03:47:06,988 DEBUG TemplateHelper:149 - putInContext hibernate.connection.driver_class=org.hsqldb.jdbcDriver
[hibernatetool] 03:47:06,988 DEBUG TemplateHelper:149 - putInContext connection.username=sa
[hibernatetool] 03:47:06,989 DEBUG TemplateHelper:149 - putInContext java.vm.vendor=Sun Microsystems Inc.
[hibernatetool] 03:47:06,989 DEBUG TemplateHelper:149 - putInContext hibernate.dialect=org.hibernate.dialect.HSQLDialect
[hibernatetool] 03:47:06,989 DEBUG TemplateHelper:149 - putInContext java.runtime.name=Java(TM) SE Runtime Environment
[hibernatetool] 03:47:06,990 DEBUG TemplateHelper:149 - putInContext java.class.path=C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-antlr.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bcel.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-bsf.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-log4j.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-oro.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-regexp.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-apache-resolver.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-commons-logging.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-commons-net.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jai.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-javamail.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jdepend.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jmf.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-jsch.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-junit.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-launcher.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-netrexx.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-nodeps.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-starteam.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-stylebook.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-swing.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-trax.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\ant-weblogic.jar;C:\Program Files\eclipse\plugins\org.apache.ant_1.7.1.v20100518-1145\lib\maven-ant-tasks-2.1.1.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\26\1\.cp\lib\antdebug.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\26\1\.cp\lib\remote.jar;C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\27\1\.cp\lib\remoteAnt.jar;C:\Program Files\Java\jdk1.6.0_20\lib\tools.jar;C:\Program Files\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar
[hibernatetool] 03:47:06,990 DEBUG TemplateHelper:149 - putInContext hibernate.bytecode.use_reflection_optimizer=false
[hibernatetool] 03:47:06,990 DEBUG TemplateHelper:149 - putInContext java.vm.specification.name=Java Virtual Machine Specification
[hibernatetool] 03:47:06,990 DEBUG TemplateHelper:149 - putInContext java.vm.specification.version=1.0
[hibernatetool] 03:47:06,990 DEBUG TemplateHelper:149 - putInContext sun.cpu.endian=little
[hibernatetool] 03:47:06,991 DEBUG TemplateHelper:149 - putInContext sun.os.patch.level=
[hibernatetool] 03:47:06,991 DEBUG TemplateHelper:149 - putInContext connection.pool_size=1
[hibernatetool] 03:47:06,991 DEBUG TemplateHelper:149 - putInContext java.io.tmpdir=C:\Users\BUHRMA~1\AppData\Local\Temp\
[hibernatetool] 03:47:06,991 DEBUG TemplateHelper:149 - putInContext java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
[hibernatetool] 03:47:06,991 DEBUG TemplateHelper:149 - putInContext os.arch=x86
[hibernatetool] 03:47:06,992 DEBUG TemplateHelper:149 - putInContext java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
[hibernatetool] 03:47:06,992 DEBUG TemplateHelper:149 - putInContext java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
[hibernatetool] 03:47:06,992 DEBUG TemplateHelper:149 - putInContext user.dir=C:\Users\buhrmande\workspace\TaskCompleterv2
[hibernatetool] 03:47:06,992 DEBUG TemplateHelper:149 - putInContext line.separator=
[hibernatetool] 03:47:06,992 DEBUG TemplateHelper:149 - putInContext java.vm.name=Java HotSpot(TM) Client VM
[hibernatetool] 03:47:06,993 DEBUG TemplateHelper:149 - putInContext cache.provider_class=org.hibernate.cache.NoCacheProvider
[hibernatetool] 03:47:06,993 DEBUG TemplateHelper:149 - putInContext file.encoding=UTF-8
[hibernatetool] 03:47:06,993 DEBUG TemplateHelper:149 - putInContext java.specification.version=1.6
[hibernatetool] 03:47:06,996 DEBUG TemplateHelper:149 - putInContext hibernate.connection.pool_size=1
[hibernatetool] 03:47:06,997 DEBUG TemplateHelper:149 - putInContext artifacts=org.hibernate.tool.hbm2x.ArtifactCollector@13e0aba
[hibernatetool] 03:47:06,997 DEBUG TemplateHelper:149 - putInContext cfg=org.hibernate.cfg.Configuration@3257b8
[hibernatetool] 03:47:07,035  INFO Dialect:152 - Using dialect: org.hibernate.dialect.HSQLDialect
[hibernatetool] 03:47:07,076 DEBUG Configuration:1120 - processing extends queue
[hibernatetool] 03:47:07,076 DEBUG Configuration:1124 - processing collection mappings
[hibernatetool] 03:47:07,076 DEBUG Configuration:1135 - processing native query and ResultSetMapping mappings
[hibernatetool] 03:47:07,076 DEBUG Configuration:1143 - processing association property references
[hibernatetool] 03:47:07,077 DEBUG Configuration:1165 - processing foreign key constraints
[hibernatetool] 03:47:07,077 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:07,078 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:07,078 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Group
[hibernatetool] 03:47:07,078 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Task
[hibernatetool] 03:47:07,079 DEBUG Configuration:1248 - resolving reference to class: com.worldkitchen.data.Problem
[hibernatetool] An exception occurred while running exporter #2:hbm2ddl (Generates database schema)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.MappingException: Could not determine type for: Long, for columns: [org.hibernate.mapping.Column(COMP_ID)]

BUILD FAILED
C:\Users\buhrmande\workspace\TaskCompleterv2\build.xml:76: org.hibernate.MappingException: Could not determine type for: Long, for columns: [org.hibernate.mapping.Column(COMP_ID)]
   at org.hibernate.tool.ant.HibernateToolTask.reportException(HibernateToolTask.java:226)
   at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:189)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
   at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.hibernate.MappingException: Could not determine type for: Long, for columns: [org.hibernate.mapping.Column(COMP_ID)]
   at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
   at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
   at org.hibernate.cfg.Configuration.iterateGenerators(Configuration.java:710)
   at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:821)
   at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:93)
   at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
   at org.hibernate.tool.hbm2x.Hbm2DDLExporter.doStart(Hbm2DDLExporter.java:78)
   at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
   at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
   at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
   ... 16 more
--- Nested Exception ---
org.hibernate.MappingException: Could not determine type for: Long, for columns: [org.hibernate.mapping.Column(COMP_ID)]
   at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
   at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
   at org.hibernate.cfg.Configuration.iterateGenerators(Configuration.java:710)
   at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:821)
   at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:93)
   at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
   at org.hibernate.tool.hbm2x.Hbm2DDLExporter.doStart(Hbm2DDLExporter.java:78)
   at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
   at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
   at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:357)
   at org.apache.tools.ant.Target.performTasks(Target.java:385)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
   at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
   at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)

Total time: 1 second


My mapping documents:
Task.hbm.xml
Code:
<class name="Task" table="TASKS" lazy="false">
      <id name="id" type="Long" column="TASK_ID">
         <generator class="native" />
      </id>
      <property name="title" type="String" column="TITLE" not-null="true" />
      <property name="description" type="String" column="DESCRIPTION" />
      <property name="time" type="time" column="SCHEDULED_TIME" />
      <property name="input" type="Byte" column="INPUT_TYPE" not-null="true" />
      <property name="start" type="date" column="START_VALID" />
      <property name="end" type="date" column="END_VALID" />
      <property name="days" type="Short" column="DAYS" />
      <property name="weeks" type="Byte" column="WEEKS" />
      <property name="months" type="Short" column="MONTHS" />
      <many-to-one name="problem" class="Problem" column="PROBLEM_ID" />
      <set name="completes" table="COMPLETED" inverse="true" lazy="true">
         <key column="COMP_ID" />
         <one-to-many class="Completed" />
      </set>
   </class>


Completed.hbm.xml
Code:
<class name="Completed" table="COMPLETED">
      <id name="id" type="Long" column="COMP_ID">
         <generator class="native" />
      </id>
      <many-to-one name="task" class="Task" column="TASK_ID" lazy="false" not-null="true" />
      <property name="date" type="date" column="SCHEDULED_DATE" not-null="true" />
      <property name="time" type="timestamp" column="COMP_TIME" not-null="true" />
      <property name="info" type="String" column="COMP_INFO" not-null="true" />
      <property name="user" type="String" column="COMP_USER" not-null="true" />
   </class>


Group.hbm.xml (Probably irrelevant)
Code:
<class name="Group" table="GROUP">
      <id name="id" type="Integer" column="GROUP_ID">
         <generator class="native" />
      </id>
      <property name="name" type="String" column="NAME" not-null="true" />
      <property name="uniqueName" type="String" column="UNIQUE_NAME" not-null="true" unique="true" />
      <list name="tasks" table="GROUP_TASKS">
         <key column="GROUP_ID" />
         <list-index column="ORDER_NUMBER" />
         <many-to-many class="Task" column="TASK_ID" />
      </list>
   </class>


Problem.hbm.xml (Probably irrelevant)
Code:
<class name="Problem" table="PROBLEM" lazy="false">
      <id name="id" type="Integer" column="PROBLEM_ID">
         <generator class="native" />
      </id>
      <property name="details" column="DETAILS" type="String" not-null="true" />
      <property name="contactName" column="CONTACTNAME" type="String" not-null="true" />
      <property name="priority" column="PRIORITY" type="Byte" not-null="true" />
   </class>


Top
 Profile  
 
 Post subject: Re: Something wrong with my mapping documents???
PostPosted: Thu Jan 06, 2011 8:13 am 
Newbie

Joined: Tue Jan 04, 2011 7:11 am
Posts: 5
Ok, guess I wrote a little too soon. My problem was in capitalizing the first letter of the Hibernate types in the mapping documents. Not sure why I was compelled to do that in the first place.

Also, I learned the "GROUP" is a key word in HSQLDB and I therefore had to change the name of one of my tables. After this, hbm2ddl worked perfectly, and the schema looks correct.


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