string name (RSS)

Design Patterns: Singleton pattern

Singleton pattern is to create an object-based model, using the Singleton pattern, you can ensure that only generated for a single instance of class as that is, the entire process space, there is only ...

CGlib dynamic agent (to undertake the above JDK dynamic proxy)

1.CGLib dynamic proxy First, import the development kit: cglib.nodep.jar and Junit.jar Implementations with the JDK or less the same for the convenience of everyone reading the full implementation of ...

Dynamic Proxy

Dynamic Proxy design pattern is 23 a very common one, often look for the development of rights management systems, Spring in the AOP is the dynamic proxy approach, the following will describe Sun' ...

Hibernate mapping one to one relationship between

Using the relationship between man and identity Person class has three attributes IdCard class has three attributes The first case, the primary key association (person class positioning the main table ...

spring 2.5.6 and hibernate3.2.2 Integration (2)

Write an article on how to use the spring annotations, this one recorded with a simple click, and hibernate. 1. Using a variety of mysql command line client or directly perform the following script: 2 ...

JAVA's role within the class

1, define in a class inside the class we are called inner classes. Second, the role of 1. Inside the implementation class is well hidden, that is encapsulation. General non-internal classes, is not al ...

About JAVA custom exceptions

To control the use of custom exceptions generated random number is not even! Hehe now review stage, the small circling the examples out on the share, the welcome given to criticizing

Chinese garbled Java solution

Java-based programming, often encounter inside and display of Chinese characters at the problem, such as a lot of garbled or question marks. This is because the default encoding JAVA is UNICODE, while ...

HIBERNATE Calling Stored Procedure

1. Building tables and initialization of the test data in mysql database, create a new table: tbl_user, to build the table statement as follows: DROP TABLE IF EXISTS `user`; CREATE TABLE `tbl_user` ( ...

lucene group bobo-Browse to sort the problem

Encountered a problem today with bobo grouped in ascending price actually two standing in the front than the 1000. Obviously it is a string sort. 100 1000 2 20 201 Then I went online to find a moment ...

Java's the difference between the Override Overload

override is overwritten, corresponding to the inheritance characteristics of OO programming, meaning that in the sub-classes override parent class method; overload is overloaded, corresponding to the ...

The first Hibernate program (environment, build, test cases)

1. Built environment 1) in the project will be a config source directory (Source Folder) --- used to the starting configuration files and properties files A test catalog - stored procedures used for t ...

A multi-threaded note

A direct successor to thread class, override the RUN method, when the call starts with the start (); package com.Thread; class MyThread extends Thread (/ / inherit Thread class, as the thread implemen ...

Oracle hibernate sequence

Oracle hibernate sequence

Automatically generated by xdoclet's hibernate mapping files, configuration files

To http://sourceforge.net/ Download xdoclet-plugins-dist-1.0.4. If the eclipse, then do not need to configure (if there is no need to install ide good ant) build.xml model: Run ant, ok, User.hbm.xml a ...

Hibernate anomaly: org.hibernate.QueryException

org.hibernate.QueryException: could not resolve property: siteType.name of: com.dlut.domain.Site Reasons not clear, I think there is no problem to configure, and realized an important qualification on ...

Application Dwr study - Spring and DWR integration

Spring and DWR integration as follows: 1. Dwr.jar in the classpath and add the corresponding jar package of Spring 2. Web.xml and spring configuration of the configuration information dwr 3. Dwr.xml i ...

JDBC package (b)

1. How to design a VO Scenes such as the JDBC package (a), what fields the table, VO in any field there, the key is how to design the relationship between employees and departments such as the 1 on th ...

JDBC package (c)

1. How to design a VO Scenes such as the JDBC package (a), the relationship between objects contained by including the target to achieve. 2. How to design database tools DBUtil The use of JDBC package ...

JBoss EJB 3.0 Chapter EJB pool and cache

JBoss EJB3.0 RC6-PFD http://www.jboss.org/jbossejb3/docs/reference/build/reference/en/html/index.html 1. Session Bean and MDB 1.1 Pooling Stateless bean oil, and an example of MDB pool. Standard equip ...

DWR obtain information session

Recently, we decided to adopt the project features Ajax technology, and finally adopted the DWR. In the use of the DWR, the face of the need to preserve access to the user session information. Interne ...

Hibernate (24): Why DetachedCriteria can not connect to check the data sheet?

To HQL conversion DetachedCriteria? In the project description of the actual problem, here's an example of an independent project to simulate the problem, but also do a debug on track. There are t ...

Hibernate Study Notes

Attribute on the bean in the scope of the problem. (Hide some of the attributes and at the same time want to be able to draw up hibernate) Sometimes, we do not want to allow storm exposed some of the ...

learning hibernate Notes (a)

Attribute on the bean in the scope of the problem. (Hide some of the attributes and at the same time want to be able to draw up hibernate) Sometimes, we do not want to allow storm exposed some of the ...

spring integration jpa

Import jpa, spring needed jar package domain: dao interface: dao achieve applicationContext.xml Persistence.xml under META-INF Test, ok!

[1.0a2 Rev 5] Grid sorting - Ext JS

I have: Record config Reader Data Store Column Model and Grid standard config. When I click on "Publish Date" column, my backend recieves param "sort = publishDate", but I expect, ...

Construction of Compass-based Hibernate application search OSEM

Compass have more contact time, the previous application are based on the XML configuration file XSEM search, for example, more than a student elective subjects, such as "language", if you s ...

Programmable configuration Hibernate3.3.0GA

1, create a new java project named Hibernate3.3Test2, add in the classpath hibernate core package, an essential package, and database-driven categories, namely: sqljdbc.jar (use is sql server2005), hi ...

On Java and Ruby variables

I remember a time when the newly recruited level, or at Ruby regard a piece of white paper, the company requested a week to master the development of Rails flow, and can start to do something, after a ...

javascript URL encoding encode

java. io. CharConversionException: isHexDigit. make the time pass parameters ajax experience this anomaly, in-line to find a solution that I have not found that errors are caused by escape. Issued the ...

js entry class object-java programmers papers

Everyone to express their views or ha, I continue to study the well, me too just learn JS Ha, the original only as a simple API RIA is currently very hot, a lot of java developers also have to start u ...

js Object-Relational articles java programmer

Oh, everyone OK.java category is the core, but a single category, has very little meaning, the key to have are kind of relationship! Inheritance, composition, and so on: Attachment can download the co ...

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 ...

Persistence Hibernate operation

Hibernate about some basic questions Hibernate through ORM (Object Relational Mapping) technology to achieve data persistence operations, that is, the relational database mapping for java classes and ...

struts2 + spring + hibernate pagination

Pagination 2EE system showed that modification dao layer, service layer, action layer, pagination two types of documents, code is as follows: dao layer interface: Java code 1. Package com.last999.im.n ...

Hibernate mapping inheritance

Inheritance mapping divided into three types: 1 single-table inheritance: each type of tree to use a table inheritance (table per class hlerarchy) Table 2 specific inheritance: a table for each subcla ...

Deal with the use of DWR callback function return a collection of the list and fill selec

1, configuration dwr.xml <? xml version = "1.0" encoding = "UTF-8"?> <! DOCTYPE dwr PUBLIC "- / / GetAhead Limited / / DTD Direct Web Remoting 1.0 / / EN" " ...

Hibernate Search, Lucene

First of all, we need to be added to the configuration in the persistence.xml as follows: <! - Use a file system based index -> <property name="hibernate.search.default.directory_provide ...

Hibernate one-to-many Select delete insert

Enterprise EbpEnterprise basic table: end Enterprise Information EbpEnterpriselanguage table: multiterminal Between these two forms are one-to-many relationship. EbpEnterprise: Part code: @ Collection ...

Hibernate custom ClassLoader to load class files under the code and implement one of

One load a directory of a class file (the code is reproduced here) 2 use URLClassLoader to load the jar package, the main code is as follows: this part of code mainly used in server load when I start ...

hibernate cache level

hibernate cache level

spring + hibernate + struts themselves summed up approach.

In fact very simple and only required two steps: 1. In the web.xml file add the following code to load the spring configuration file. 2. In order to enable the Action to be Bean, Writing a BaseAction ...

Chinese javascript AJAX Problem summary

Ajax garbled today met the problem, at-line for a long time to find information on a variety of test methods, and finally found this article or tell me the correct way, and would like to thank. Origin ...

Ajax does not refresh the page in case of implementation of the user name to determine

Today, under the ajax implementation saw the sign box, javaeye before the implementation of a log in box is also estimated using ajax implementation. It can not refresh the page to verify the user nam ...

DWR Demo

Dwr.jar download under the lib on Medium in web.xml add the following code: Category deal with the preparation of background: DwrTest.java and the introduction of category DwrTestForm.java Add dwr.xml ...

ROR troubled long Axis2 web service calls to be initially resolved

Problem: ROR how Axis2 call the web service Currently experiencing this problem, Google and Baidu found at numerous times, both at home and abroad have seen virtually no valuable information, the only ...

and analysis of the use of DWR

1. Download dwr.jar, to add it to WEB-INF/lib directory 2. Modify web.xml file, add the mapping DWRServlet <servlet> <servlet-name> dwr-invoker </ servlet-name> <servlet-class> ...

Hibernate access picture sample

General web users to upload picture at treatment would normally uses two types of strategies: First, put directly into the picture in the database Blob field; II database are stored only at the pictur ...

Ruby Symbol

Ruby is a completely cross-platform object-oriented scripting language, built on the Ruby-based Web framework Ruby on Rails (ROR) is the field of web development is gaining increasing acceptance. ROR ...

hibernate study of the fifth chapter

1, oracle database, user is the keyword, if a user table named user will give rise to conflicts. The approach taken in the main have two kinds: ① If you can modify the table name, it is best to change ...