Hello Max,
Thanks for your response.
2. Regarding the integer primary key: Currently, even though the size of the column is defined as NUMBER(8), which amounts to data in the range +/-(10^8 - 1), the tool creates the mapping and java files with properties of type java.math.BigInteger. Can you please tell us if there is a setting that can be altered to make this a java.lang.Long/java.lang.Integer. (we are using these integer IDs with Oracle sequences in the system)
4. We also have read the code and it seems like the code is designed to support the autogeneration of views and tables (Synonyms are commented out). But when the tool runs in eclipse, For some reason, the tool is skipping all the views. Can you point us to a solution to this?
3. Please let us know the name of the template file that needs to be changed. I downloaded the source code from the CVS, but when I try to compile it, it gives the errors below:
C:\HibernateToolsCVS\HibernateExt>build
C:\HibernateToolsCVS\HibernateExt>set HIBERNATECORE=C:\ HibernateToolsCVS\HibernateExt\..\hibernate-3.0
C:\HibernateToolsCVS\HibernateExt>java -cp "C:\HibernateToolsCVS\HibernateExt\..\hibernate-3.0\lib\ant-lau ncher-1.6.2.jar" org.apache.tools.ant.launch.Launcher -lib C:\HibernateToolsCVS\HibernateExt\..\hibernate-3.0/lib
Buildfile: build.xml
dist:
init: [echo] Build Hibernate Console-3.0 (2005-02-16 01:47:45) [mkdir] Created dir: C:\HibernateToolsCVS\HibernateExt\console\build\classes [copy] Copying 21 files to C:\HibernateToolsCVS\HibernateExt\console\build\classes [copy] Copying 2 files to C:\HibernateToolsCVS\HibernateExt\console\build
compile: [javac] Compiling 69 source files to C:\HibernateToolsCVS\HibernateExt\console\build\classes [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:16: package org.hibernate.event.def does not exist [javac] import org.hibernate.event.def.AbstractEvent; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:73: cannot resolve symbol [javac] symbol : class AbstractEvent [javac] location: class org.hibernate.console.EventSink [javac] public void add(AbstractEvent event) { [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:79: cannot resolve symbol [javac] symbol : class AbstractEvent [javac] location: interface org.hibernate.console.EventSink.Handler [javac] Object getValue(AbstractEvent event, int column); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:83: cannot resolve symbol [javac] symbol : class AbstractEvent [javac] location: class org.hibernate.console.EventSink.AbstractHandler [javac] public Object getValue(AbstractEvent event, int column) { [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateIdentifierProperty.java:11: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateProperty.java:7: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\NodeFactory.java:27: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: package type [javac] import org.hibernate.type.CollectionType; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\ClassNode.java:10: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\ClassNode.java:14: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: package type [javac] import org.hibernate.type.CollectionType; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\NodeFactory.java:190: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.NodeFactory [javac] public PersistentCollectionNode createPersistentCollectionNode(ClassNode node, String name, ClassMetadata md, CollectionType type, Object baseObject, boolean objectGraph) { [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PersistentCollectionNode.java:12: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PersistentCollectionNode.java:16: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: package type [javac] import org.hibernate.type.CollectionType; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PersistentCollectionNode.java:28: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.PersistentCollectionNode [javac] CollectionType type; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PersistentCollectionNode.java:36: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.PersistentCollectionNode [javac] public PersistentCollectionNode(NodeFactory factory, BaseNode parent, String name, CollectionType type, ClassMetadata md, CollectionMetadata metadata, Object baseObject, boolean objectGraph) { [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\MappingsTreeCellRenderer.java:19: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: package type [javac] import org.hibernate.type.CollectionType; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PropertyNode.java:4: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\views\GraphView.java:24: cannot resolve symbol [javac] symbol : class EntityMode [javac] location: package hibernate [javac] import org.hibernate.EntityMode; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:34: cannot resolve symbol [javac] symbol: class AbstractEvent [javac] public Object getValue(AbstractEvent event, int column) { [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:58: cannot resolve symbol [javac] symbol : class AbstractEvent [javac] location: class org.hibernate.console.EventSink [javac] AbstractEvent event = (AbstractEvent) events.get(rowIndex); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\EventSink.java:58: cannot resolve symbol [javac] symbol : class AbstractEvent [javac] location: class org.hibernate.console.EventSink [javac] AbstractEvent event = (AbstractEvent) events.get(rowIndex); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateProperty.java:39: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.HibernateProperty [javac] setValue(cmd.getPropertyValue(object, getName(),EntityMode.POJO)); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateProperty.java:43: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.HibernateProperty [javac] cmd.setPropertyValue(object, getName(), getValue(), EntityMode.POJO); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateIdentifierProperty.java:28: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.HibernateIdentifierProperty [javac] setValue(cmd.getIdentifier(object, EntityMode.POJO)); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\HibernateIdentifierProperty.java:32: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.HibernateIdentifierProperty [javac] cmd.setIdentifier(object, (Serializable) getValue(), EntityMode.POJO); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\NodeFactory.java:197: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.NodeFactory [javac] new Class[] { NodeFactory.class, BaseNode.class, String.class, CollectionType.class, ClassMetadata.class, CollectionMetadata.class, Object.class, boolean.class}, [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\NodeFactory.java:216: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.NodeFactory [javac] CollectionType pct = (CollectionType)type; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\NodeFactory.java:216: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.NodeFactory [javac] CollectionType pct = (CollectionType)type; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\ClassNode.java:69: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.node.ClassNode [javac] PersistentCollectionNode tn = factory.createPersistentCollectionNode(this, names[i], md, (CollectionType)type, getValue(), objectGraph); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\ClassNode.java:93: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.node.ClassNode [javac] String cname = ((ClassNode)currentParent).md.getMappedClass(EntityMode.POJO).getName(); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PersistentCollectionNode.java:58: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.node.PersistentCollectionNode [javac] collectionObject = md.getPropertyValue(baseObject, name, EntityMode.POJO); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\MappingsTreeCellRenderer.java:93: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.MappingsTreeCellRenderer [javac] CollectionType ptype = (CollectionType) type; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\MappingsTreeCellRenderer.java:93: cannot resolve symbol [javac] symbol : class CollectionType [javac] location: class org.hibernate.console.MappingsTreeCellRenderer [javac] CollectionType ptype = (CollectionType) type; [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\node\PropertyNode.java:23: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.node.PropertyNode [javac] return baseMetaData.getPropertyValue(baseObject, getName(), EntityMode.POJO); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\views\GraphView.java:114: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.views.GraphView [javac] dgm.add(new DefaultPort(element.getMappedClass(EntityMode.POJO) + "/Center")); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\views\GraphView.java:116: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.views.GraphView [javac] class2Node.put(element.getMappedClass(EntityMode.POJO), dgm); [javac] ^ [javac] C:\HibernateToolsCVS\HibernateExt\console\src\java\org\hibernate\console\views\GraphView.java:189: cannot resolve symbol [javac] symbol : variable EntityMode [javac] location: class org.hibernate.console.views.GraphView [javac] String str = element.getMappedClass(EntityMode.POJO).getName(); [javac] ^ [javac] 36 errors
BUILD FAILED C:\HibernateToolsCVS\HibernateExt\build.xml:25: The following error occurred while executing this line: C:\HibernateToolsCVS\HibernateExt\common\common-build.xml:142: Compile failed; see the compiler error output for details.
Total time: 7 seconds
|