| 
 File file = new File(“F:\test.jpg”); tx = session.beginTransaction(); 这是映射文件里的配置<property name=”file” type=”binary”></property> 不知道是哪里的问题,我每次运行都报错:  | 
|
![]()  | 
 完整的映射配置: 
<id name=”id”> <generator class=”native”></generator> </id> <property name=”name” type=”string”></property> <property name=”file” type=”binary”></property>  | 
![]() 40分  | 
|
![]()  | 
|
![]()  | 
 正解+1  | 
                    
