org.hibernate.PropertyNotFoundException: Could not find a getter
for empDeptId  in class com.legend.shipment.Temployee
这个问题表明:
    1)getter()方法写错了,没有按照javaBean的规则写.
    2)*.hmb.xml中的属性名和pojo中的是否一致.注意:属性名是否多了空格.
	
posted on 2006-03-27 10:57 
Harryson 阅读(8724) 
评论(5)  编辑  收藏  所属分类: 
Hibernate  
 
	    
    
FeedBack:
	
		
			# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId  in class com.legend.shipment.Temployee
 
			
				2008-11-19 13:47 | 
				真是非常感谢你,通过你的贴子,我解决了我的问题……  
回复  更多评论   
			 
			
			
		 
	
		
			# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId  in class com.legend.shipment.Temployee
 
			
			
			
		 
	
		
			# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId  in class com.legend.shipment.Temployee[未登录]
 
			
				2009-06-17 09:47 | 
				如果不是这个问题,
请注意javaBean 属性命名的时候第二个字母不要大写。  
回复  更多评论   
			 
			
			
		 
	
		
			# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId  in class com.legend.shipment.Temployee[未登录]
 
			
				2009-12-25 20:14 | 
				谢谢哦
我的问题也解决了
果然是没按照JAVABEAN的规范写  
回复  更多评论   
			 
			
			
		 
	
		
			# re: org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId  in class com.legend.shipment.Temployee