framework components are popular but non-standard open source framework components. It is mainly developed and controlled by Interface21 Inc. The architecture of Spring framework components is based on the dependency injection (DI) design pattern. Spring can work independently or with an existing application server. It uses a large number of XML configuration files.· The EJB 3.0 framework component is a standard framework component defined by the Java Community Organization (JCP) and supported
Core
Using HibernateTools, from the POJO class, Mapping file, there is one of the database tables, you can generate the other two.
Overview
When using Hibernate to develop the persistent layer of the system, follow the general development process
1. Analyze the business
2. Obtain the system entity class
3. Write the Hibernate ing file of Hibernate.
4. Generate a database table based on the ing File
The above steps are the beginning of Hibernate deve
As a start-up company, less developers, so the company temporarily decided to let a few C program ape temporary guest cameo java. So there are a lot of basic problems, today there are two people are asked me, JavaBean and pojo differences, I can follow their own understanding to their roughly said, but carefully a careful to find that they do not seem so thorough explanation is clear, looked up the next information, wrote down some notes and understan
Java's (Po,vo,to,bo,dao,pojo) explanationThe O/R Mapping is an abbreviation for the Object Relational Mapping. The popular point is that the object is bound to the relational database, and the object is used to represent the relational data. In the world of O/R mapping, there are two basic and important things to understand, namely Vo,po.VO, a Value object, a PO, a persistent object (Persisent objects) that consists of a set of properties and properti
. By means of generic Java objects that do not use entity beans, Pojo can be used as an aid class to support business logic.Pojo can be understood as a simple entity class, as the name implies that the role of Pojo class is convenient for programmers to use data tables in the database, for the vast number of programmers, it is convenient to use the Pojo class as
a result, the PO is independent, and the data persistence layer is independent, so it is not subject to any business interference. In this case, the business logic layer is also independent and will not be affected by the data persistence layer. The business layer only cares about the processing of the business logic. As for how to read and give it to others! However, if we do not use the data persistence layer or hibernate, Po and VO can be the same thing, although this is not good.-----------
---------------------------------------------------------
Po: Persistent Object
1. It is also called a data object. It corresponds to the entity in the database and can be considered as a record in the database corresponding to a po.
2. The persistence framework of Hibernate is closely related to insert/delet operations.
3. The PO should not contain any operations on the database.
---------------------------------------------------------
Pojo: plain o
The pojo class generated by hbm2java in hibernate 3.2.x is always similar to the following:
Public class child implements java. Io. serializable {
Private int CID;
Private string childname;
Public int getcid (){Return this. CID;}Public void setcid (int cid ){This. cid = CID;}Public String getchildname (){Return this. childname;}Public void setchildname (string childname ){This. childname = childname;}}
However, if you use JDK or a later version, you
course I mean their attributes ). As a result, the PO is independent, and the data persistence layer is independent, so it is not subject to any business interference. In this case, the business logic layer is also independent and will not be affected by the data persistence layer. The business layer only cares about the processing of the business logic. As for how to read and give it to others! However, if we do not use the data persistence layer or hibernate, Po and VO can be the same thing,
. By means of generic Java objects that do not use entity beans, Pojo can be used as an aid class to support business logic.Pojo can be understood as a simple entity class, as the name implies that the role of Pojo class is convenient for programmers to use data tables in the database, for the vast number of programmers, it is convenient to use the Pojo class as
POJO(Pure old Java object)is an ordinary Java class, there are some private parameters as properties of the object, and then for each parameter defines the interface that the get and set methods access.I see this definition, the heart has a question, this pojo and javabean definition how so like? What is the difference between the two?Pojo is actually a simpler c
business methods; 3. Both are included. In practical use, it is not important to think which concept is right, the key is to apply the actual application of the need for their own projects.
4, POJO (plain ordinary Java object) Simple irregular Java objects
(understood as each layer: the received and returned Java Bean collectively)
1. The unified concept of abstraction, an intermediate object, can be transformed into a po, a DTO, a VO (or a PO, a D
First, remember. This class is a common class (public) and must have a common default constructor. The properties of this class are accessed using getter and setter, and other methods conform to the standard naming conventions. (JavaBean is a class that defines a series of get
JavaBean: A reusable component written in the Java language, whose method naming, structuring, and behavior must conform to specific conventions.
POJO (Plain ordinary Java Obje
Tags: map ext content CTO false entity port ESC ClassName First of all. I'll have to spit it out. This ant manages the tools for deploying the project. As well as hibernate just learned, import me this one simple question whole day more. It's really inefficient. During these two days, ① learned about Ant. Knowing the very flexible step project in ant, I know some basic wording of the Build.xml file. ② also learned to complete the project deployment in the MyEclipse integration tool.③ and in bot
Parameter bindings for wrapper types
Requirements: Commodity search conditions. In the method of commodity query, the article realizes the incoming of the commodity query condition.
Implementation method
The first method: Add the HttpServletRequest request parameter to the formal parameter. Accept query condition parameters through request.
Second method: Let the Pojo of the wrapper type accept the query condition parameter in the formal parameter
Po:persistent Object Persistent Objects1. Sometimes also known as the data object, the corresponding entity in the database, you can simply think of a PO corresponding to a record in the database.2. The Hibernate persistence Framework is closely related to insert/delet operations.3. The PO should not contain any operations on the database.---------------------------------------------------------Pojo:plain ordinary Java Object Rules-free simple Java objectsAn intermediate object that can be conve
Tags: style blog color io using java ar for data Packagecom.pccw.business.fcm.common.hibernate;ImportJava.lang.reflect.Field;ImportJava.math.BigDecimal;Importjava.util.ArrayList;Importjava.util.Arrays;Importjava.util.List;Importorg.hibernate.HibernateException;ImportOrg.hibernate.property.ChainedPropertyAccessor;ImportOrg.hibernate.property.PropertyAccessor;Importorg.hibernate.property.PropertyAccessorFactory;ImportOrg.hibernate.property.Setter;ImportOrg.hibernate.transform.ResultTransformer;/**
is a business object, is living in the business layer, is used by business logic, it is the purpose of survival is to provide a place for the data to survive.The PO is stateful, and each property represents its current state. It is the object representation of the physical data. Using it, we can decouple our programs from physical data and simplify the transformation between the object data and the physical data.3. VO's properties are different depending on the current business, that is, each o
Po (persistant object) Persistent ObjectThe concept that appears during o/R ing does not exist if there is no o/R ing. usually it corresponds to the data model (database), and some business logic is processed. it can be seen as a Java object mapped to tables in the database. the simplest Po is to correspond to a record in a table in the database. A set of PO can be used for multiple records. the PO should not contain any database operations.
VO (Value Object) Value ObjectIt is usually used for
SPRINGMVC determines the procedure access method of the target method Pojo type into the parameter @RequestMapping ("/pojoparam") public String pojoparam (user user) { Return "Success"; } 1, first determine a key value ① if the Pojo type parameter of the target method is not using @modelattribute as the entry parameter, the key is the first lowercase example of the
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.