What is the type of the id in your model,
is it datatype.String (or java.lang.String)?
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Luciana Nunes Leal
Sent: Wednesday, November 24, 2004
2:06 PM
To:
[EMAIL PROTECTED]
Subject: [Andromda-devel] ENC:
Could not interpret type: $attribute.type.fullyQualifiedHibernateType
De: Luciana
Nunes Leal
Enviada: qua 24/11/2004 17:32
Para: [EMAIL PROTECTED]
Assunto: Could not interpret type:
$attribute.type.fullyQualifiedHibernateType
I�m using AndroMDA with Maven. Currently, AndroMDA�s version
is 3.0M3.
In my model, there is a class with an attribute named
"id" that is java.lang.String.
The generated code is like this:
/**
*
*
* @hibernate.id
*
generator-class="uuid.hex"
* column="ID"
*
type="$attribute.type.fullyQualifiedHibernateType"
*
* @hibernate.column
* name="ID"
*
sql-type="java.lang.String"
* not-null="true"
*/
public java.lang.String getId()
{
return this.id;
}
public void
setId(java.lang.String id)
{
this.id = id;
}
When I run maven, appears the following
error:
[java] 24/11/2004
16:52:04 net.sf.hibernate.cfg.Configuration add
[java] SEVERE: Could not compile the mapping document
[java] net.sf.hibernate.MappingException: Could not
interpret type: $attribute.type.fullyQualifiedHibernateType
[java] at
net.sf.hibernate.cfg.Binder.getTypeFromXML(Binder.java:934)
[java] at
net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
[java] at
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:265)
[java] at
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
[java] at
net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
[java] at
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
[java] at
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
...
[java] 24/11/2004
16:52:04 net.sf.hibernate.tool.hbm2ddl.SchemaExport main
[java] SEVERE: Error creating schema
[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:934)
[java] at
net.sf.hibernate.cfg.Binder.bindSimpleValue(Binder.java:435)
[java] at
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:265)
[java] at
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
[java] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
[java] at
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
Does anybody know what is happening?
-------------------------------------------------------
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://productguide.itmanagersjournal.com/
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel |