I just learned it. Let's take a look at the introduction of 3yee.
Http://nhibernate.3yee.com/archive/2004/04/22/394.aspx
Nhib.pdf is an open source based. NET data persistence framework, suitable for rapid development of information system applications, is conducive to multi-layer structure system development, the framework design of a project is generally di
course.Update,DeleteAndSelectThey are all the same
Ak2.0Introduction:
Ak2.0Developed independently for me and their teamsThe database persistence layer framework goes through2Months of development, more than half a year of testing, is currently stable, the version is also from1.0Upgrade2.0Which implements the underlyingSQLAutomatic splicing, automatic processing, and no nonsense. We can directly past
Hibernate Object Persistence frameworkJDBC :( Java Data Base Connectivity) java Database Connection
The java. SQL package provides JDBC APIs to write program code for accessing the database. common interfaces and classes include the following:
DriverManager: Driver manager, responsible for creating database Connection:
2. Custom persistence Layer (DAO) framework
Update case: (Insert/update/delete)
1. Load Driver
2. Get connection
3. Create a Pstmt object
4. Implement Sql:pstmt. executeupdate ();
5. Close
Query: (SELECT)
1. Load Driver
2. Get connection
3. Create a Pstmt object
4. Implement Sql:pstmt. ExecuteQuery ();
5. Get the result set object: Encapsulate the object, add it to the collection, and then return
6. Close
Spring framework: Spring and persistence
Spring persistence is used to simplify data operations.
Data Source
Data sources can be divided into multiple types: JNDI, connection pool, and JDBC.
The configuration method of JNDI. In this example, Tomcat is used as a Web container. First, add the upper and lower sections of code in context. xml.
After restarting To
transaction processing.
Hibernate Advantage
Hibernate's DAO layer development is simpler than mybatis, and mybatis needs to maintain SQL and result mappings.
Hibernate to the object maintenance and caching is better than MyBatis, to delete and change the object of the maintenance to be convenient.
Hibernate database portability is very good, MyBatis database portability is bad, different databases need to write different SQL.
Hibernate has a better level two caching me
Membercontroller extends jvncontroller{public void Save () {member member = new M Ember (); Member.set ("Name", "Everxs"); Member.set ("Age"); Member.save (); Renderstring ("Add success!") ");}}Result: The database was saved successfully.about JVN:Framework named JVN, the blog has a continuous development of video, each blog is a knowledge point, about the framework of the introduction and learning, from my blog first start to look at;The source and
This is a creation in
Article, where the information may have evolved or changed.
MQ Framework for multiple persistence scenarios based on GO+PROTOBUF: Kiteq
Gitlab found a relatively good open source project, hereby introduced:
Brief introduction
* 基于zk维护发送方、订阅方、broker订阅发送关系、支持水平、垂直方面的扩展* 基于与topic以及第二级messageType订阅消息* 基于mysql、文件存储方式多重持久层消息存储* 保证可靠异步投递* 支持两阶段提交分布式事务
Engineering structure
kiteq/├──readm
Make an advertisement for a friend
Speed quick J2EE development frameworkSpeedframework (http://sourceforge.net/projects/speedframework) is a lightweight persistent layer framework fully developed based on JDBC. It can directly call SQL, or directly perform crud operations on pojo,CodeSimilar to Orm, it is easy to debug without configuration. The built-in JCs cache can effectively reduce the database pressure. It has the following features:
1. No co
user); Boolean delete (int id); User FindByID (int id); ListFifth Step: Implementing the DAO InterfaceCreate a Usermapper.xml file under the DAO package as an implementation of the DAO interface created in the previous step.Here are some notes on this XML file:1. Namespace must be consistent with the full class name of the corresponding interface.2, the ID must match the corresponding interface of a corresponding method name must be the same as the method in the Usermapper.java interface. Sixth
primary key field is, and @ generatedvalue annotation requires the persistence layer to generate a value for this field. This is all we need to do. Now we can start using address.
Address address=new Address();address.setPostcode("ZZ9 99Z");address.setName("John Doe");
To maintain the address, we need to obtain an entitymanager for each unit of work required to process the data. Persistence in
Introduction to the new features of IBM WebSphere application Server V7.0 Feature Pack for Java Persistence API 2.0
Object-Relationship persistence is an important part of Java EE application development. The Java Persistence API
14 skills for high-performance Java persistence, high-performance java
A high-performance data access layer requires a lot of knowledge about the database, JDBC, JPA, and Hibernate. This article summarizes some important technologies that can be used to optimize enterprise applications.
1. SQL statement log
If you use a frame
Nine, The persistence ofIn the example in section eighth, when we manipulate a set of objects, we can specify writer, outputstream to write out the serialized XML data, and we can also specify reader, InputStream to read the serialized XML data. We need to specify the input and output stream when we need to write and read the file, and we need to explicitly call the input and output method to implement the serialization and deserialization of the
1. Prerequisite ConditionsFirst, the machine must have the following environment, if not can be downloaded to the Sun websitenetbeans5.5Sun Java System Application Server Platform Edition 9Jdk5
2. Create Web ProjectCreate new Project File > New project from the menu. Select the Web application from the Web directory.Project name Zooapp, server item selects the Sun Java System application Server,
Strive for a more comprehensive, more outstanding
The Java™persistence API (JPA) was first introduced to the Java Platform Enterprise Edition (Java EE) 5 as the canonical Enterprise javabean™ (EJB) 3 Part of the family. Since then, JPA 1.0 has evolved into a popular persistence
;}
For more information in using JSF with Spring, and the SPRING-JAVA/J2EE application Framework integrating with JavaServer Fa Ces.
Using the Java Persistence API (JPA) with Spring 2.0The Spring Bean Catalogdao uses the Java
java face test-persistence layer 10
91, what is ORM.Object-Relational mapping (object-relational Mapping, or ORM) is a technique to solve the problem of mismatch between the object-oriented model of program and database;
To put it simply, ORM is to automatically persist objects in a program to relational databases or to convert rows from relational database tables into
Simple persistence for Java is an open source object-relational persistence library that simplifies object persistence in Java applications using a custom query language and built-in database support. In this article, Software Architect Sami Salkosuo introduces the library a
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.