first, Chinese translation
Øcookie: Little Cookie? I exhausted all the methods have not found its Chinese translation, even I have been very trusting powerword to it is only an explanation rather than a translation. (If any person can translate,
said that there is already output, with the editor to fight, clearly there is nothing in front, originally in the use of Ajax, also appeared in this situation, and later, put the PHP file into Linux Open, will find that in the first file, there will
When we develop websites that involve data sharing between pages, we often need to use a certain method to persist our data. There are many ways to persist data, this requires us to make a choice. During development, we need to precisely select the
This is a creation in
Article, where the information may have evolved or changed. Custom session Structure:
Type Session struct {SessionID string ' json: ' SessionID ' Bson: ' SessionID ' ' User *user ' json: '-' Bson: "User" '
Session cache:
A series of Java collections are included in the implementation of the session interface, which forms the session cache, so that objects stored in its cache do not end the life cycle as long as the session instance does not
Hibernate provides many methods for object operations. This article briefly introduces the use and comparison of these methods.
Hibernate provides many methods for object operations. This article briefly introduces the use and comparison of these
PO persistence object and PO in hibernate
I. Understand the persistence object PO:
In hibernate applications,Each table in the database corresponds to a persistent object PO.. PO can be viewed as a java object mapped to a database table. The
The get and load methods are used to obtain a record based on the ID.The difference between get and load is described in detail below, because sometimes find will be added for comparison.
1. Compare the returned results:The Org. hibernate.
Hibernate provides many methods for object operations. This article briefly introduces the use and comparison of these methods.
Before describing the methods, describe the three states of objects in hibernate: transient, persistent,
The fundamental difference between the get method and the load method in Hibernate is that if you use the load method, Hibernate recognizes the object corresponding to this ID (Database record) as existent in the database, so it can be safely used,
HibernateStatus of the Java object in the Application
When the applicationProgramAn object is created using the new statement, and the lifecycle of the object begins. When no reference points to it, the lifecycle of the object ends, the
The status of the Hibernate Persistence object.1. From the perspective of persistence,Hibernate divides objects into four states.:Persistence status,Temporary status,Free Status (off-pipe status),Delete state. The Session method can convert an
Hibernate core interface, hibernate Core
Configuration (AnnotationConfiguration)
Role: Manage configuration information
Objective: To generate SessionFactory
You can specify the hibernate configuration file in the configure method. It is
In spring integrated hibernate, two operations are provided for Dao layer access.
(1)Protected final session getsession () throws dataaccessresourcefailureexception, illegalstateexception;
Spring API explanation:
Obtain a hibernate session,
The session's cache is also known as Hibernate's first-level cache. The session cache is built-in and cannot be unloaded, and the session cache is a transaction-scoped cache (the session object's life cycle usually corresponds to a database or a
From: http://www.cnblogs.com/gxinliug/archive/2011/04/26/2029788.html
There are two differences between load and get. First, let's talk about the first delayed loading.Load is true, get is falseThe idea is that load uses the delayed loading method
A:
Hibernate has two extremely similar methods: Get () and load (). Both of them can read data from the database through the specified object class and ID, and return the corresponding instance, however, Hibernate won't adopt two identical methods.
For hibernate, the interviewer most want to know is the following summary of these more than 10 questions, each question has a detailed answer, if you are fully aware of the following questions, then asked about hibernate in the interview what are
Hibernate core interface
Configuration (AnnotationConfiguration)
Role: Manage configuration information
Objective: To generate SessionFactory
You can specify the hibernate configuration file in the configure method. It is loaded under
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.