A few words to understand POJO, JavaBean, EJB, DAO, DTO, VO, PO, BO, do
1. POJO
POJO (Plain old Java Object) is called by Martin Fowler, Rebecca Parsons and Josh Mackenzie in a speech in 2000. According to Martin Fowler, "Plain old Java object" is literally translated as "pure old-fashioned Java objects," but everyone uses "simple Java objects" to address it.
Code in the lastI personally do not like HTTP and JSON, may be the cause of the game, the communication protocol and communication mode is very sensitive, so even for the application I will choose RPC instead of HTTP, but sometimes for various reasons, still do not handle the standard http+json things.This time you do have to deal with a whole bunch of JSON, which translates a whole bunch of JSON into standard Java Pojo. Maybe a little json string we
Pojo = pure old Java object or plain ordinary Java object or what ever.Po = persisent Object Persistent Object
In other words, in some object/relation mapping tools, the persisent object that can maintain database table records is a pure Java object that complies with Java Bean specifications, without adding other attributes and methods.First, we need to differentiate the persistence object (PO) and pojo.The persistent object must actually correspond
I. ConceptPOJO (Plain ordinary Java object) Simple Java objects, actually is the ordinary JavaBeans, is to avoid and EJB confusion created by the abbreviation.The Pojo name is used to avoid confusion with EJBS, and the abbreviation is more straightforward. There are classes of properties and their getter setter methods, there is no business logic and can sometimes be used as VO (value-object) or DTO (Data Transform object). Of course, if you have a si
What is PojoPOJO, the full name "Plain ordinary Java Object" (also known as "Pure old Java Objects"), is literally translated as "Simple plain Java", but everyone uses "simple Java objects" to call it.The intrinsic meaning of Pojo refers to Java objects that do not inherit from any class, do not implement any interfaces, and are not invaded by other frameworks.Comparison of Pojo and JavaBeanThe
data, and there is no need to pass the entire PO object to the client. At this point we can pass the result to the client with a DTO with only these 10 attributes, so that the service-side table structure is not exposed. After the client arrives, if the object is used to display the interface, then its identity will be converted to VO. POJO (POJO is a concept or interface in which identity and function c
I still cannot understand vo and pojo. First, Let's explain what I Think vo and pojo are.Assume that a project uses STRUTS + hibernateThere are two classes in the project.CN. VO. userlistThis class uses VO to transmit data in Bo and to pages.CN. Hib. pojo. userlistThis is mainly used to transmit data with the database.
I want to ask many people to separate
Difference between JAVA vo pojo javabean dto and pojojavabean
JavaBean is a reusable component written in JAVA. The class must be specific and public and have a non-parameter constructor. JavaBean exposes the member attributes of an internal domain by providing a public method that complies with the consistent design pattern. As we all know, attribute names comply with this pattern. Other Java classes can discover and operate these JavaBean attributes
Difference between JAVA vo pojo javabean dto and pojojavabean
JavaBean is a reusable component written in JAVA. The class must be specific and public and have a non-parameter constructor. JavaBean exposes the member attributes of an internal domain by providing a public method that complies with the consistent design pattern. As we all know, attribute names comply with this pattern. Other Java classes can discover and operate these JavaBean attributes
Java object (PO, BO, VO, DTO, POJO, DAO, Entity, JavaBean, JavaBeans) differentiation, pojojavabeans
PO: persistent object), Po (persistent object) is the Entity in the Object/Relation Mapping Framework. Each attribute of po basically corresponds to a field in the database table. It is a pure Java object that complies with the Java Bean specifications without adding other attributes and methods. Persistent objects are created by the insert database an
Next blog: HibernateTools implements mutual conversion of pojo-class database schma mapping
Idea 2: The Mapping File and POJO class are generated from the database table.
Although it can be implemented, I personally think that designing a database first and then generating a class does not conform to Hibernate's way of thinking about Object persistence. Well, let's talk about the steps. First, create two ta
PO BO VO DTO POJO DAO Concept and its role (with conversion chart)Blog Category:
Java
JavadaovopojoboThe large number of professional abbreviations in the development of the Java EE is confusing, especially for new graduates who are not clear-minded.If with the company Daniel talk about technical people export is PO VO BO DTO POJO DAO, etc., so that the new people are extremely admired Daniel.
Part 1 pojo
Bascentity
/**
* Simple JavaBean domain object with an ID property.
* Used as a base class for objects needing this property.
*
* @ Author Ken Krebs
* @ Author Juergen hoeller
*/
Public class baseentity {
Private integer ID;.....................................(The get/set method is omitted, the same below)}This class is the unified parent class of pojo corresponding to the object class and pro
of the browser:
Http: /localhost: 8080/axis2/
If the page shown in 1 is displayed in the browser, Axis2 is successfully installed.
Figure 12. compile and publish WebService
The impression of a service program implemented in Java is that a large amount of configuration is required, but this will be terminated in axis2. In Axis2, a simple POJO can be directly published as a WebService without any configuration. All the public methods in
POJO (Plain ordinary Java Object)A simple Java object,The actual is the ordinary JavaBeansTo avoid the short name created by the confusion with EJBS. The Pojo name is used to avoid confusion with EJBS, and the abbreviation is more straightforward. Some of these properties and their getter, setter method classes, have no business logic, and can sometimes be used as VO (value-object) or DTO (Data Transform ob
. DTOs (processed po, may increase or decrease the properties of the PO):data Transfer Object data transfer ObjectsIt is mainly used for remote calls, etc. where large quantities of objects need to be transferred. For example, if we have 100 fields in a table, then the corresponding PO has 100 attributes. but we just show 10 fields on the interface,The client uses the Web service to get the data, and there is no need to pass the entire PO object to the client.At this point we can pass the re
When WebServices is developed in Java, a message indicating parameter mismatch is displayed when pojo is passed.
When the webservices service is developed in Java, there is no problem when the parameter is of the basic data type.
However, if a pojo is passed, that is, a java object, you may encounter a parameter mismatch problem.
After the webservices interface is exposed, it must be a wsdl file. Many arti
POJO objects are actually our entities. This blog summarizes the framework's primary key generation policies for POJO objects and some simple addition, deletion, modification, and query operations on POJO objects.
I. There are three primary key generation policies in the Hibernate framework:
1. The database is responsible for generating the primary key (proxy
Speak of reflection. I have to say that it is too powerful to be able to easily get a variety of things through reflection, assuming that you want to release a dependency on a class in your project and consider using reflection.Today's share is to get all the field values of the Pojo class through reflection in Java.Why do you do this? The main purpose is to override the ToString method of the entity class. Someone would say. Override the ToString met
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.