스프링 어노테이션 무난히 마치고
하이버네이트 어노테이션을 설정하고 있었으나..

문제가 생겨 이래저래 알아보던 차에
겨우 찾은 사이트[link]에서 얻은 힌트

Tweaking Hibernate and Spring

Before we started this conversion, we were using only a Spring configuration file to get our Hibernate session factory. We didn't have a hibernate.cfg.xml file. Unfortunately, Spring doesn't yet know about Hibernate annotations, so we had to spread our configuration across two files. Here's our Spring configuration before we started the conversion:


ㅠ_ㅠ 아직 방법이 없었던거야?




Posted by 시난