Comparison of hibernate criteria and Hibernate query methods:
This is not very detailed and is for reference only.
Hibernate criteria:1. Get the session:Private sessionfactory;
Public sessionfactory getsessionfactory (){Return this.
@ Overridepublic string execute () throws exception {// todo auto-generated method stubreturn super.exe cute ();}
This is the default struts2 method.
Sometimes we manually enter the above method and accidentally input a parameter, but the
Selectt. manager_id as managerid, max (T. manager_name) as managername, count (1) as num fromtbzapply_task T left join tbzevalueteam e on T. meeting_id = E. evalue_id group bymanager_id
Count the number of tasks of management personnel
Add
Every window object, whether it is a regular HTML page. Framework set page. Both the sub-framework and the Sun Tzu framework have a top attribute. This property returns a reference to the top-level javase object loaded into the browser;
. If the
The Singleton design mode is required in many aspects during Java application development. The reason is: The Singleton class requires the creation of an implementation, reducing the resource overhead caused by the creation of multiple classes.
One bottle of beer is one RMB, and two empty bottles can change one bottle of beer. I have 20 RMB. How many bottles of beer can I buy? Please write oneAlgorithm.
I recently encountered a pen question during my interview. I didn't write it at the
Single Sign-onSingle Sign On (SSO) is one of the most popular solutions for enterprise business integration. SSO is defined in multiple application systems. Users only need to log on once to access all mutually trusted application systems.
The sessionfactory of Hibernate is thread-safe. This sessionfactory is responsible for creating session instances, but this session instance is not thread-safe. One data source corresponds to one sessionfactory, and one sessionfactory can generate
Http://www.oschina.net/translate/tomcat-performance-tuning? From = 20130727
Introduction
Consider this scenario. You have developed an application with excellent Layout Design, latest features, and other outstanding features. However, there is a
The main variable value of sql0302n in the execute or open statement is used accordingly.
Too large.
Note:
It is found that the value of the input primary variable is too large for use in select, values, or pre-compiled statements.
. One of the
The JSP page uses the
For example, contenttype = "text/html; charset = GBK"
Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> List of collected parameters User name: Gender: Male: Female: Favorite color: RED: Green: Blue: Countries from:
Configure listener in Web. xmlThe XML Code is as follows: org. springframework. Web. Context. contextloaderlistener listener-class>
If you specify the XML to be loaded for the listener in Web. XML, for example:
The XML Code is as follows:
Extended File Upload
Set the File Upload format, size, and prompt information
1. Set the File Upload format and size to be configured in struts. xml. Use the struts interceptor fileupload, but be sure to add the default interceptor; otherwise,
1. modify Oracle 10g \ database \ stage \ prereq \ dB \ refhost. xml
In
2. Find the oraparam. ini file in the install directory and
# Windows = 4.0, 5.0, 5.1, 5.2
Modify
# Windows = 4.0, 5.0, 5.1, 5.2, 6.1
And add
[Windows-6.1-required]
#
VaR reg1 =/^ [0-9a-za-z/u4e00-/u9fa5/_] + $/; // you can only enter Chinese characters, numbers, letters, and underscores.If (! Reg1.test (channelname )){$ ("# Namemsg"). fadein (1000 );$ ("# Namemsg" ).html (" contains letters, numbers, underscores,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service