Hi Wouter,

to be more specific: I use the Spring-Cartridge.
I changed the following files:
JdbcMappings.xml
JavaMappings.xml
PostgreSQLMappings.xml

I changed project.xml to pick up the changed files. (I verified this)

I added the following to PostgreSQLMappings.xml
    <mapping>
        <from>datatype.Text</from>
        <to>TEXT</to>
    </mapping>

and the following to JavaMappings.xml
    <mapping>
        <from>datatype.Text</from>
        <from>datatype.String</from>
        <to>java.lang.String</to>
    </mapping>

I now also changed HibernateMappins.xml to include
    <mapping>
        <from>datatype.Text</from>
        <to>java.lang.String</to>
    </mapping>

But nothing changed.

Jan


Am 11.02.2005 um 11:58 schrieb Wouter Zoons:

looks like your using hibernate on your project, did you also update the
corresponding hibernate mapping file ?


can you file an issue in jira for a better error message if this solves
the problem ?

thanks
-- Wouter

Hi,

I introduced a new datatype, datatype.Text , into my model.
I changed JavaMapping.xml & PostgresQLMapping.xml
and changed the props in project.xml to pick up the modified
files. this seems to work so far, but I get the following exception:

ejb:ejb:
     [echo] Building ejb billing-core-1.0-SNAPSHOT
     [jar] Building jar:
/Users/jheise/Development/janheise.de/Terralink/billing/core/target/
billing-core-1.0-SNAPSHOT.jar
INFO  [PostGoalTag] Running post goal: ejb:ejb
     [mkdir] Created dir:
/Users/jheise/Development/janheise.de/Terralink/billing/app/target
     [java] log4j:WARN No appenders could be found for logger
(net.sf.hibernate.cfg.Environment).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] net.sf.hibernate.MappingException:
net.sf.hibernate.MappingException: Could not interpret type:
$attribute.type.fullyQualifiedHibernateType
     [java]      at
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:179)
     [java]      at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
     [java] Caused by: net.sf.hibernate.MappingException: Could not
interpret type: $attribute.type.fullyQualifiedHibernateType
     [java]      at
net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:935)
     [java]      at
net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:436)
     [java]      at
net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1048)
     [java]      at
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:363)
     [java]      at
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1257)
     [java]      at
net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
     [java]      at
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
     [java]      ... 1 more

Did I miss another file? datatype.Text should by of type
java.lang.String but I don't want
that changed generally but only for some attributes. So I created a new
datatype.
Perhaps I have to do this another way (tags etc.)?


Jan



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user







------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to