1. Enable Hibernate Startup log stackoverflow.comIn book "Java Persistence with Hibernate" I came across a line that says:
|
2. heres the XML mapping, the code, hibernate msg log.... forum.hibernate.orgtry{ Session s = DemoSession.currentSession(); AttachFile file = new AttachFile(); file.setFileName( "test1.jpg" ); file.setFilePath( "P:\\temp\\sample\\" ); ContactRecord cr = new ContactRecord(); cr.setContactDate( new Date()); cr.setMemo( "this ... |