JAVA EE

Fundamentals of Web Design

Designing a web site needs careful thinking and planning. The most important thing is to KNOW YOUR AUDIENCE. Users are Scanners A typical visitor will NOT read the entire content of your Web page! No matter how much useful information you put into a Web page, a visitor will only spend a few seconds scanning […]

Difference between session.save() and session.persist() method

Originally posted on Mohanpreet Brar:
1.session.save() method returns generated identity value as the return value of the method call, as its return type is java.io.Serializable. Whereas session.persist() method does not returns anything as its return type is void. 2. Using the return value as result session.save() method call we can get to know what record…