sql statements (RSS)

jdbc of the Statement, PreparedStatement, CallableStatement

Statement each time you run sql statement, the database should be the implementation of sql statements to compile, it is best used only to perform a query and returns the results of the case, more eff ...

JPA Overview

Java Persistence API JPA through JDK 5.0 annotations or XML description of the object - the relationship between the mapping table and run-time persistence of the entity object to the database. Sun in ...

Hibernate understand the inverse! Many-to-many

Inverse two-way relationship is hibernate in the basic concepts of, of course, for most entities, we do not require two-way link, more one-way correlation may choose Moreover, most of us are generally ...

learning hibernate Notes 5 - session.flush ()

We know that by default hibernate implementation of CRUD in accordance with the save, update, delete the order, why was it so? Because in the call session.save () when, hibernate at the same time the ...

Halo has been engaged in a hibernate

I really can not stand, we must write something about vent! Recent struts + hibernate + spring up a framework to write an RSS reader, do not hibernate because of the familiar, do not know how to multi ...

Hibernate Performance Optimization 1

First, modify, and delete volume In Hibernate 2, if any need to modify, and delete data operation, are required to execute a query operation, being necessary to modify or delete data, then the corresp ...

Stored procedure

when the sql statement before the implementation of the compiler, and then implementation. Stored procedure (Stored Procedure) is a set of specific functions in order to complete the set of SQL statem ...

Hibernate (18): Hibernate initialization how to generate SQL statements?

Look at aspects of the book yesterday when Hibernate see the "dynamic - update = true" configuration. In a Model of the Mapping category after it set up, hibernate in the initialization Mode ...

Hibernate performance

(To:) 1, will be so one-to-many relationship set to lazy in the true 2, modified hibernate.properties, an increase of the following two sentences: hibernate.jdbc.fetch_size = 50 hibernate.jdbc.batch_s ...

JDBC

<! - / * Font Definitions * / @ font-face (font-family: Song; panose-1: 2 1 6 0 3 1 1 1 1 1; mso-font-alt: SimSun; mso-font-charset : 134; mso-generic-font-family: auto; mso-font-pitch: variable; m ...

Opening - start from the JDBC

The use of Java has been more than two years and has never been a study in depth specific things, has been used in any job, and then learn what seems to understand everything that is啥都do not know. Thu ...

My cover letter in English

Applied For Java Developer Engineer March 23, 2009 Nanhua university Changsheng West on the 28th Hengyang Hunan, China 421001 Dear Sir or Madam: I'm glad to tell you that I'll be engaged as a ...

Hibernate configuration parameters

At J2ee applications, if the Hibernate framework, can be automatically set up the database entities and the Java entity class mapping relations procedures greatly facilitate Java Persistence object ac ...

Hibernate optimization program

First, batch modify and delete In Hibernate 2, if necessary for any data to modify and delete operations, are required to execute a query operation, has been at the want to amend or delete data, then ...

hibernate one-to-many inverse mapping of the intelligent property confusion

We found that the number of sql statements are the same, functions similar, but found at the above two update statements inside, then set up a name like, but the sql statement below shows the more &qu ...

Hibernate's primary key generation mechanism and the use of SQL statements mysql4.0 recovery problem

Recently, at the time to do the project encountered a problem, customers in the use of Hibernate to insert records to the database always encounter this kind of error message: And this problem at the ...

Hibernate Session Introduction

First, session interface Session interface hibernate are provided to the application's main interface to manipulate the database, it provides the basic preservation, update, delete, query methods. ...

hibernate optimistic locking and pessimistic locking (1)

1. Pessimistic lock It refers to the modification of data by outsiders hold a conservative attitude. The assumption that at any time access to data, may also have another client to access the same dat ...

Hibernate caching mechanisms

Cache is located in applications and physical data sources for the copy data temporary storage memory region, the purpose of the application in order to reduce the physical data sources for the number ...

hibernate mapping inverse and cascade Collection Detailed

# Assume that there is a relationship between the table ADDRESS_SCHOOL, has two fields ADDRESS_ID, SCHOOL_ID, # The two fields corresponding to ADDRESS and the key two tables SCHOOL (11) insert the SQ ...

Hibernate easy extract

Simple terms the following excerpt from hibernate: DAO mode, the database access layer implementation is hidden to the Data Accessor, the front said, DAO mode are in fact a combination of two modes, n ...

Hibernate pessimistic locking mechanism for locking and optimistic locking

hibernate lock mechanism 1. Pessimistic lock It refers to the modification of data by outsiders hold a conservative attitude. The assumption that at any time access to data, may also have another clie ...