ObjectiveFrom the title of the article, it can be clearly understood that this article is to discriminate between three easy to confuse the novice technical terminology. If you know the difference and the relationship between the three nouns at the glance of the past, then this article you can not continue to read, unless you want to see what I have to explain the wrong, to correct (to find fault, haha), also welcome messages.noun explanation
JPA
ObjectiveFrom the title of the article, it can be clearly understood that this article is to discriminate between three easy to confuse the novice technical terminology. If you know the difference and the relationship between the three nouns at the glance of the past, then this article you can not continue to read, unless you want to see what I have to explain the wrong, to correct (to find fault, haha), also welcome messages.noun explanation
JPA
What is 1.JPA? and related overview
JPA is a shorthand for the Java persistence API, an ORM specification that Sun is officially proposing!
Sun has proposed this specification for 2 reasons:1. Simplify existing Java EE and Java SE application development work.2.Sun wants to integrate ORM technology to achieve the world.
The point is that JPA is a
JPA (3): JPA + Hibernate basic learning
In the first article of this series, we have mentioned JPA and Hibernate. Is the role of the two in the system architecture:
We can draw two conclusions from a piece of film: first, the main role of
, with no constraints or restrictions whatsoever, but only with Javax.persistence.Entity to gaze at, JPA's framework and interface are also very simple, there are not too many special rules and design patterns of requirements, developers can very easy to grasp. JPA is designed on a non-intrusive basis, so it can be very easy to integrate with other frameworks or containers.4 query capability comparable to JDBCJPA's query language is object-oriented ra
or restrictions, only using Javax.persistence.Entity, the JPA framework and interface are also very simple, there are not too many special rules and design patterns of requirements, developers can easily grasp. JPA is designed on a non-intrusive basis, so it can be easily integrated with other frameworks or containers.4 query capability comparable to JDBCJPA's query language is object-oriented rather than
Native Hibernate and Hibernate JPA
According to the official Hibernate website, native Hibernate APIs and Hibernate JPA implementations are available. What is the difference between th
hibernate save method public void Testinsert () {//1. Get facto
Ry Entitymanagerfactory factory = persistence.createentitymanagerfactory ("JPA");
2. Get Manager Entitymanager manager = Factory.createentitymanager ();
3. Access to business and open Uiwu entitytransaction transaction = Manager.gettransaction ();
Transaction.begin ();
4. Execute SQL Users users = new users ("1", "xiaoming", 18);
M
Statement:1, this article is original, not copied or reproduced over.2, this thesis has done the experimental demonstration.3. The hibernate configuration described in this article is based on annotations, and the HBM syntax is not available.A lot of people are not clear about the persistence layer concept JPA, Hibernate, EJB3.0 relationship, here to do a simple
Relationship between JPA and Hibernate
1. JPA
JPA Full name: Java persistence APIJPA uses JDK 5.0 annotations or XML to describe the ing relationship between objects and Relational Tables, and persistently stores object objects in the database at runtime.The emergence of JPA
Hibernate analysis:
Hibernate is an open-source code object-link ing framework that encapsulates JDBC objects in a lightweight manner. It allows Java programmers to operate databases as they wish.
Core interfaces of hibernate:
Session: executes the crud of the Persistent object, which is thread insecure.
Sessionfactory: initializes
In recent years ORM (Object-relational Mapping) Object-relational mapping, which is the mapping of entity objects and database tables, the technology market people sound furor, unusually lively, sun in the full absorption of the existing excellent ORM framework design ideas, based on the development of a new JPA (Java Persistence API) specification. The JPA Java Persistence API is a standard ORM interface f
/641897551.Hibernate Relationship to JPA
JPA's overall thinking is broadly consistent with the existing ORM frameworks such as Hibernate, Toplink,jdo, and so on. JPA is a provider to achieve its functions, hibernate is a strong one in the
one in JPA provider, which requires provider to function. Functionally, JPA is now a subset of hibernate functionality. Hibernate starts at 3.2 and is compatible with JPA. Hibernate3.2 obtained the JPA (Java persistence API) Comp
In this article we describe and compare two of the most popular open source persistence frameworks: Ibatis and Hibernate, and we'll also discuss the Java Persistence API (JPA). We introduce each solution and discuss the quality that it provides, as well as its strengths and weaknesses in a wide range of application scenarios. Then we compare Ibatis, Hibernate, an
JPA Java persistence API is a standard ORM interface of Java ee 5 and part of ejb3 specifications.
Hibernate, a popular ORM framework today, is an implementation of JPA, but its function is the superset of JPA.
The relationship between JPA and
JPA Full name Java Persistence API. JPA describes the mapping of objects-relational tables through JDK 5.0 annotations or XML, and persists entity objects for the run-time into the database.The overall idea of JPA is broadly consistent with existing ORM frameworks such as Hibernate, TopLink, JDO, and so on. In general,
I know that JPA is a specification, and hibernate is an implementation of it. In addition to hibernate, there are Eclipselink (formerly TopLink), OPENJPA, etc. to choose from, so one advantage of using JPA is that you can replace the implementation without having to change too much code.When you define the model in pla
Http://developer.51cto.com/art/200906/130500.htm JPA (Java Persistence API) is the Java Persistence specification proposed by Sun. It provides Java developers with an object/relational mapping tool to manage relational data in Java applications. This article will compare the pros and cons of JPA and hibernate.Java Persistence APISince EJB technology can begin to be applied, there is always doubt about its u
The JPA Java Persistence API is a standard ORM interface for Java EE 5 and is part of the EJB3 specification.Hibernate, today's popular ORM Framework, is an implementation of JPA, but its functionality is a superset of JPA.the relationship between JPA and hibernate can simply be understood as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.