michaelisvy / hibernate-4-spring-3.1-samples Goto Github PK
View Code? Open in Web Editor NEWshowcases how to integrate Spring 3.1 and Hibernate 4 (with or without JPA)
showcases how to integrate Spring 3.1 and Hibernate 4 (with or without JPA)
Hi,
While analyzing some design rules with design tests for persistent classes, I discovered that 91% of a sample of 40 projects from GitHub don't follow the rule about the implementation of the equals/hashCode methods.
These rules are in the documentation of Hibernate (subsection 2.1.5 chapter 2). The first one states that the equals/hashCode methods must be implemented and the second one that their implementation must not access the identifying property. 66% of the projects violate the first rule and 25% violate the second one.
How do you use the framework Hibernate / JPA. I would like to ask two questions:
Do you think these software projects have latent bugs caused by the design rules violations or is the rule unnecessary?
Did your development team discusses about the recommendations for use of Hibernate / JPA?
There are also other rules that they aren't being followed. For more details about the experiment with others results, access: http://tacianosilva.github.io/designtests
Thanks in advance!
i have open session in oracle and session limit problem
when i use
getSession.openSession();//session limit in oracle
and
sessionFactory.getCurrentSession();//have problem in that session not exist in thread
i config @transcation by i get not open session in lazy loading (session close)
i dont know how do it plz help meeee
plzzzzz
@Autowired
private SessionFactory sessionFactory;
@Override
public List<T> getAll() {
Criteria criteria = getSession().createCriteria(domainClass.getName());
return criteria.list();
}
public Session getSession() {
return sessionFactory.getCurrentSession();
}
it would be cool if you add an sample app using the new hibernate 4 multi tenancy approach :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.