<property name="mappingDirectoryLocations">
<value>/WEB-INF/hbm</value>
</property>
스프링 + 하이버네이트 사용시에 하이버네이트 설정을 스프링에서 하게 되는데
API 를 보니...
public void setMappingDirectoryLocations(Resource[] mappingDirectoryLocations)
- Set locations of directories that contain Hibernate mapping resources, like "WEB-INF/mappings".
Can be used to add to mappings from a Hibernate XML config file, or to specify all mappings locally.
- See Also:
Configuration.addDirectory(java.io.File)
요런 넘이 있었넹...
몰랐다는 -.-;;
'JAVA > Framework' 카테고리의 다른 글
[spring] WebApplicationContext 가져올때 .... (0) | 2005.03.05 |
---|---|
[struts] Validator 기초.. (0) | 2005.02.25 |
[hibernate]net.sf.hibernate.LazyInitializationException (0) | 2005.02.22 |
Hibernate + Spring 일때.. 페이징 문제 (2) | 2005.02.18 |
[펌] [Ultra API] 모아서 쓰는 API 링크 - 2004.11.12 (0) | 2005.02.17 |