DAO

阅读更多
@Modifying
@Query("update User u set u.firstname = ?1 where u.lastname = ?2")
int setFixedFirstnameFor(String firstname,String lastname);


@Column(name="contact_name",nullable=false,length=512)

  1. @Basic(fetch = FetchType.LAZY)   
  2. @Type(type="text")  
  3. @Column(name="PROFILE", nullable=true)   
hql语句

你可能感兴趣的:(DAO)