logo       

Re : Enhydra: Problems migrating Enhydra 3.1 to 5.1: msg#00043

java.enhydra.general

Subject: Re : Enhydra: Problems migrating Enhydra 3.1 to 5.1



>>1. DODS
>>- The appname.doml file seems to have a completely new syntax compared
>> with DODS 4.0. So I rewrote it.
>> When I use the attributes "isConstand" or "isUnique" the generator
>> gives an error message, that these attributes are not defined.
>> Why?



DODS4.x doml is completely different from DODS5.1 doml, but,
DODS3.x is similar and you can use tool:
doml31_2_doml50 - tool for converting doml3.x to doml5.x.
This tool is in <dods5.1_root>/bin directory.
Syntax of doml5.1 is defined in <dods5.1_root>/build/dtd/doml.dtd file

The attribute "isConstant" (you wrote "isConstand" but we assume that you
meant "isConstant") exists in tag <column>, but,
the attribute "isUnique" doesn't exist any more. You can define unique
index using new index syntax.



>>- In DODS 4.0 some classes were put from the package com.lutris.dods to
>> org.enhydra.dods. In Enhydra 5.1 the classes are put back to
>>com.lutris.dods?



Origin (base) version of DODS 5.1 is DODS 3.5 (not DODS4.x), this is the
reason of package problem.



>>There are two jars for DODS: dods.jar and dods-runtime.jar
>> What is dods.jar good for? It seems that dods-runtime consists of the
>>same classes
>> plus some additionals.



The dods-runtime.jar is used for runtime and the dods.jar is used for
generating code, sql, ...
Next days you can find new versions of that files (on CVS and binary
versions) where classes are changed and updated.
You can use dods.bat (dods in Linux) Wizard for creating sql, java code and
documentation.

>> - And the problem where I stuck completely is the following:
>> I use MySql as database. I tried to customize the types.conf file,
because
>> we are using the types "blob" and "text".
>> So I appended the type "Text" to Standard_JDBC.TYPE_NAMES[] and
>>inserted the following
>> section:
>> Standard_JDBC.Text.SQL_TYPE=TEXT
>> Standard_JDBC.Text.JDBC_TYPE=Clob
>> Standard_JDBC.Text.JAVA_TYPE=byte[]
>> Standard_JDBC.Text.JAVA_TYPE_CLONE="<JAVA_VAR>.clone()"

>> Now the generator throws an EjenException. What's wrong?

Don't use types.conf file; it will be ejected. You can customize
dodsConf.xml (field LONGVARBINARY for MySQL).





3. ANT

Setclass and setbuildclass set all neccessery jar files which used during
development of application into classpath. You can't replace them with
ant.jar and antcontrib.jar.



Regards,



Sinisa Milosevic

Together, Serbia


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise