log « Map « JPA Q&A

1. Enable Hibernate Startup log    stackoverflow.com

In book "Java Persistence with Hibernate" I came across a line that says:

Hibernate produces all trivial CRUD SQL at startup. It caches the SQL statements
internally for future use, thus avoiding any ...

2. heres the XML mapping, the code, hibernate msg log....    forum.hibernate.org

try{ 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 ...