object obj (RSS)

The use of Java reflection and JPA wrote the 'universal' CRUD tools

On weekends, spent nearly four hours was a 'universal' in CRUD tools, but if you want to use JPA must be carried out using ORM operations. There the object mapped to the data table when, Id fi ...

The spring has gone again, BUG no more will come back!

Evil bug, take a look at all such a stupid Mody: 1. Using the sequence when you use select max (id) from table; ------- too violent, and direct data recorded chaos 2. Multi-layer for the time loop, th ...

JDBC template class (version 1.2)

Version 1.2 added a new insertion method: / ** * In the Web development struts framework, number of pages of data are stored in the database will be packaged in a formbean object * In these data into ...

Do not use any loop and recursion, the output print n of (n> 1) "Hello World

import java.util.Arrays; public class test ( public static void main (String [] args) ( String str = "Hello"; int num = 6; Object [] obj = new Object [num]; Arrays.fill (obj, str); String s ...

Aop simple implementation interceptor chain

In the Spring there are interceptors chain with that, how to achieve a simple interception JDK chains do. At first, the idea is a dynamic agency model, combined with the list, but found that there is ...

javascript inheritance mechanism

The inheritance mechanism javascript: Function.prototype.read = function (){};// expansion Function prototype for (var i in Object) alert (i) / / show the read, this is further evidence of the Functio ...

composite primary key hibernate mapping of an example

MealfeeDetail.hbm.xml MealfeeDetail.java Database table fields:

Hibernate.initialize (Object obj)

On lazy (lazy) and forced to load (Hibernate.initialize (Object proxy)), etc. Sustained in the use of hibernate when it is sometimes necessary to change the dynamic loading of objects, such as in the ...

Struts and Hibernate Integration Session and Transaction will be placed in Filter

HibernateSessionFactory modify file (this file is from the Hibernate help complete the move of our own): Add the following: private static final ThreadLocal trthreadLocal = new ThreadLocal ();// Servi ...

Cart combat II: entity class and the hibernate configuration file

1. According to the above four tables set up, we Mr. category into four entities, namely: Account, Order, Item, Product Account as a result we will be in the city and the street into an abstract entit ...

Client application access EJB, the server for the WAS 6.1

Premise: server-side EAR right package release, if necessary, the interface type has been derived. Client settings: the assumption that a client-side web applications, known as the test. WEB-INF insid ...

Some commonly used JavaScript code

Event source object event.srcElement.tagName event.srcElement.type Capture release event.srcElement.setCapture (); event.srcElement.releaseCapture (); Event button event.keyCode event.shiftKey event.a ...

The operation of the database my base class (HIBERNATE)

The operation of the database my base class (HIBERNATE)

VI. Dwr filters and log configuration

DWR filters and log configuration 1, filters use DWR has provided us with the use of filters, as long as we realize the DWR has provided us with a filter interface, we can use at DWR filter. DWR look ...

javascript skills Guinness (1)

Event source object event.srcElement.tagName event.srcElement.type Capture release event.srcElement.setCapture (); event.srcElement.releaseCapture (); Event button event.keyCode event.shiftKey event.a ...

Ruby in the meaning of keywords

1, break out of the cycle when the layer 2, next neglect the remainder of the cycle to begin the next cycle 3, redo a fresh start cycle, or the beginning of this first 4, retry to start the loop 5, $ ...

Using AJAX to prepare a simple photo album

AJAX (Asynchronous JavaScript And XML) is a use of JavaScript and Extensible Markup Language (XML), in a web browser and server to send or receive data between the technologies. Mainly used in Ria (Ri ...

js events Guinness 2

Event source object event.srcElement.tagName event.srcElement.type Capture release event.srcElement.setCapture (); event.srcElement.releaseCapture (); Events button event.keyCode event.shiftKey event. ...

First Hibernate Example

Curd a simple example. Source does not contain the dependent libraries, or playing too much of the package. PO object Note: One must have the default constructor 2 non-final modified. Otherwise useles ...