This instance is a flex-Java communication project. The front end adopts the cairngorm framework and the backend adopts hibernate + spring.
For each deployment step, see the text and description. It is designed to adopt a fast development project architecture.
Because there are many images, they are divided into the following four parts. Readers are welcome to criticize and correct them.
Flex + J2EE in
1. Import Eclipseweb ProjectFollow the navigation, always next.Warning do not worry, first click on the confirmation, go back to set up the JDKAfter the project is successfully imported, as2. Configure the imported items to enter the project Settings screen by Ctrl+shift+alt+s (or the icon in)(1), click Project to set up the project, the main set of red line around the place. The path points to the project's compiled folder (the directory where the class file is placed).(2) Click on the module t
This article is mainly about the introduction of hibernate, the example is very simple, is to add a username and password to the datasheet. I used three different methods, one is to write code directly, write HBM mapping file, and so on, one is to generate code by HBM mapping file, one is to generate HBM mapping file by code. Using some automation tools, Xmlbuddy is used to edit XML files, and the JBoss Ecl
Preface reprint Please indicate source: http://www.cnblogs.com/smfx1314/p/7795837.htmlThis project is an exercise I wrote to review the integration and use of the SSH framework. Project Introduction: This project mainly has the front desk administrator through the login to enter the Employee Management System page, then can the employee list carries on the general deletion and modification investigation. And the list of departments and additions and deletions to check. The IDE uses eclipse, the
Go on, I'm going to create another project, Sshtest, and move the Shdemo code in (Shdemo to do something else)
1. Introducing Spring's required jar package
Not only does this need spring's jar package
You also need two data source packages in Hibernate
There is also a Aspectjweaver.jar package, this package in the AOP configuration of the time required, now spring package is not provided, to download the
Simplified spring for hibernateTo access the persistence layer of hibernate, follow these steps:(1) create a configuration instance.(2) create a sessionfactory instance.(3) create a session instance.(4) Open the transaction.(5) Start persistent access.(6) Submit the transaction.(7) If an exception occurs, roll back the transaction.(8) Close the session.Although some processes can be encapsulated using a too
process of creating Hiberantetemplete objects requires a dependency injection into a sessionfactory*/Private Hibernatetemplate hibernatetemplate;public void Sethibernatetemplate (Hibernatetemplate hibernatetemplate) {This.hibernatetemplate = hibernatetemplate;}public void Save (customer customer) {Hibernatetemplate.save (customer);}Public listHQL Query All Customers1. Get Query object, Session.createquery (HQL) 2. Pass query Parameters 3. Get query ResultsFind method first argument, HQL stateme
1. Integration of spring and Hibernate 1.1. Create a sessionfactory in the spring containerTo avoid hard-coded resource lookups that are tightly coupled with application objects, Spring allows you to define data access resources such as JDBC DataSource or hibernate sessionfa
Hibernate search I will not say more, it is based on Lucene full-text Search tool, remember when the university contacted the Compass full-text Search tool, and then did not use, and then later this guy does not update, So hibernate has launched its own lucene-based full-text Search tool which is the guy hibernate search. Needless to say that the natural advantag
Found on the Internet, for small o to share, this relatively intuitive point, to make a supplement. Oh
These days to hibernate and spring good look, and then think of some of the things struts, decided to integrate the 3 together, the performance layer with Struts+freemarker, business layer with spring,hibernate proc
Label:Many projects have back-end database operations through Spring+hibernate, where prototypes are modeled by a simple demo. Code structure 1. Spring configuration is as follows: XML version= "1.0" encoding= "UTF-8"?>
Beansxmlns= "Http://www.springframework.org/schema/beans"Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"Xmlns:context= "Http://www.sprin
Recently, we are interested in the JPA implementations of Hibernate, which are documented in the configuration method.First, MAVEN relies on package configuration, where spring3.1.2 and hibernate3.6.0 are used.The is then the spring configuration Applicationcontext.xml, it is important to note that the data source here is Jndi, which is recommended in a production environment, rather than the properties fi
. web. servlet. view. tiles. TilesConfigurer">Class = "org. springframework. web. servlet. view. InternalResourceViewResolver">Org. springframework. web. servlet. view. tiles. TilesJstlView
When I open the homepage, a request/index will be sent to the homepage. lzw, web. all *. lzw requests are all managed by spring, so no struts controller is required ??!), So the request reaches the view-config.xml, according to the
Class = "org. springframework. w
When it comes to the integration framework, in fact, the environment is set up, first we want to guide the package, where we connect the database we use the spring container, we use the connection pool to connect the database, we need to import c3p0 and JDBC Jar package, The rest is spring and hibernate jar packages.After we create a series of packages and classe
There are two ways to integrate STRUTS1 and spring are action and spring bean mapping; one is to give the action to spring initializationThe first way: access the. Do Url->tomcat receive the request-〉 into the struts configuration file find the corresponding action-〉 find the corresponding action component (action that Class)-〉 this class to the request a series
Similar to hibernate and manually written by spring framework
I recently learned the underlying technology of hibernate and spring, and I think it is very good. So I 'd like to share it with you. If you are not talking about it in detail, you can download the resources and view the download link.
Technology is embodied
. If it is also used in the layer, the configuration file is in a large category, which is not clear but inconvenient to debug, the configuration file cannot be found out if an error occurs. spring is also an idea. There are many ways to solve a problem. Spring is only one of them, which may not be the best or the worst, use it in the appropriate place. implementing decoupling with your own code is also a g
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.