`
星夜的遐想
  • 浏览: 190674 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

component property not found: id

阅读更多
Caused by: org.hibernate.MappingException: component property not found: id
	at org.hibernate.mapping.Component.getProperty(Component.java:292)
	at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:2455)
	at org.hibernate.cfg.AnnotationBinder.fillComponent(AnnotationBinder.java:2336)
	at org.hibernate.cfg.AnnotationBinder.bindComponent(AnnotationBinder.java:2285)
	at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:2021)
	at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:796)
	at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:707)
	at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:4035)
	at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3989)
	at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398)
	at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1375)
	at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:720)
	at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
	... 62 more

 

public class CustomerSP {
    private ParamTree	areaPropertyParamTree		= new ParamTreeAreaProperty();				//地理属性

}

     检查了下代码,发现有一个对象属性areaPropertyParamTree没有声明@Transient注解,但是没想到

    报出这个一个异常,真的没想到。

 

public class CustomerSP {
    @Transient
    private ParamTree	areaPropertyParamTree		= new ParamTreeAreaProperty();				//地理属性

}

 

 

分享到:
评论

相关推荐

    Sakemail

    Fixed a minor bug with the boundary.- Change the generator of the message id.- Added the field MessageId and InReplyTo to the TSakMsg component.- Added the field In-Reply-To that is added to the ...

    8-07-14_MegaCLI for linux_windows

    SCGCQ00327929 Defect Command to enable Patrol Read on SSDs controller property is not shown in Help SCGCQ00331576 Defect LSI MegaCLI EncInfo (Enclosure Info) duplicates the first power supply status ...

    springmybatis

    `id` int(11) NOT NULL AUTO_INCREMENT, `userName` varchar(50) DEFAULT NULL, `userAge` int(11) DEFAULT NULL, `userAddress` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_...

    RxLib控件包内含RxGIF,全部源码及DEMO

    found as "View | Project Resources" in the Delphi 3 and C++Builder 3 IDE menu and as "Project | Resources" in the Delphi 4 or higher IDE menu. 3. Units that provide functions and objects to work with...

    rx第三方控件

    found as "View | Project Resources" in the Delphi 3 and C++Builder 3 IDE menu and as "Project | Resources" in the Delphi 4 or higher IDE menu. 3. Units that provide functions and objects to work with...

    net学习笔记及其他代码应用

    答:解1: select top 10 * from A where id not in (select top 30 id from A) 解2: select top 10 * from A where id > (select max(id) from (select top 30 id from A )as A) 34.面向对象的语言具有________性...

    acpi控制笔记本风扇转速

    not loaded (FADT, FACS, DSDT). BZ 477 Added #pragma pack(8/4) to acobject.h to ensure that the structures in this header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been manually ...

    Sending Email using MAPI - A COM DLL(sending email demo and soucecode)

    The CLSID of the Email component is CLSID_Mail and it has only one interface IMail with the interface ID IID_IMail. CMail is the implementation class and contains following data members: m_...

    Java邮件开发Fundamentals of the JavaMail API

    doesn't sound like much, but it is your basic MIME-type support found in many browsers and mail tools today. After downloading the framework, unbundle the jaf1_0_1.zip file, and add the activation....

Global site tag (gtag.js) - Google Analytics