Spring IDREF usage

后端 未结 5 550
执念已碎
执念已碎 2020-12-11 01:54

I have a spring.xml defined as per below:




        
5条回答
  •  醉话见心
    2020-12-11 02:21

    I'm a little bit perplex I must say. In the example you provide praveen it will work because the attribute in your class is of type String but in the example of yapkm01 the attribut is of type Point and you will get the exception mentioned. In order to be able to use idref it seems that he would have to introduce yet another attribute of type String, here "message", and then the code would look something like this:

    
        
    
    
    
    

提交回复
热议问题