Joined: Thu Mar 04, 2004 5:41 am Posts: 10
|
using hibernate 2.1.2
jbsss 3.2.3
14:36:48,311 ERROR [Configuration] Could not compile the mapping document
net.sf.hibernate.MappingException: properties of components may not be formulas: platformName
at net.sf.hibernate.cfg.Binder.bindComponent(Binder.java:858)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1028)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:352)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1229)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at com.scea.npd.psupdater.service.common.hibernate.HibernateConfiguration.addInputStream(HibernateConfiguration.java:79)
at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:315)
at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:973)
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:952)
at com.scea.npd.psupdater.service.middletier.persistence.PackageDb.<init>(PackageDb.java:46)
at com.scea.npd.psupdater.service.middletier.persistence.DlsDb.<clinit>(DlsDb.java:29)
at com.scea.npd.psupdater.service.middletier.entity.DlsManager.<clinit>(DlsManager.java:25)
at com.scea.npd.psupdater.service.middletier.DlsUpdaterBean.<clinit>(DlsUpdaterBean.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
<component name="empComp" class="component.EmpComponent">
<property name="EmpId" type="java.lang.String" column="Emp_ID" not-null="true" length="10"/>
<property name="EmpName" formula="
(select EmpName from Emp where Emp.Emp_id=EmpId)" />
</component>
|
|