i have two classes named A one under package a.b.c and another under d.e.f
the two mapping that i have are as follows
<class name="a.b.c.A" table="A1">
<id name="AId" type="java.lang.String">
<generator class="assigned" />
</id>
</class>
<class name="d.e.f.A" table="A2">
<id name="AId" type="java.lang.String">
<generator class="assigned" />
</id>
</class>
when i deploy this i get an exception as
12:57:17,662 ERROR [Configuration] Could not compile the mapping document
net.sf.hibernate.MappingException: duplicate import: A
at net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:288)
Do i have to have two different class name even if they are under different packages. i read the documentation and it said about a fully qualfied name. when using package names, the fully qualified name is different, but it gives me this error.
if i remove one of this declaration, everything runs ok,
i am using jobss 4.0.1. and hibernate 2
is there something that i am doing wrong
thanks
Abbasi
|