Struts 2 Spring Integration Here you will see how to integrate Struts 2 with Spring and get data using spring dependency injection.
Struts 2 Maven Hello World Here you will see how to create Struts 2 Maven Hello World first application using eclipse tomcat and maven.
Cannot change version project facet Dynamic web Module 2 5 If you are getting above exception when trying to change dynamic web module to 2.5 please follow below steps:
Hibernate Native SQL Queries Hibernate also provide functionality to execute directly native SQL query to fetch data from database. Below is examples:
Hibernate Criteria Queries Hibernate interface org.hibernate.Criteria can be use to query against chosen persistent class to pull data from database and session word as factory for Criteria object. Below is criteria query sample:
Hibernate Named Query Hibernate named SQL queries can be defined in mapping file or as annotation and called in same way as named HQL query. Below are examples:
HQL Parameter binding Hibernate query language flexible enough to fit all development needs to execute SQL query to get data from table. It supports almost all approach which developer can think of. Below are different approach which HQL supports: Supports … Continue reading
HQL Update Query hibernate Hibernate Query language also can be use to update data in the table. To update table query pattern is almost same as native SQL and only difference is: in place of table name you will have … Continue reading
HQL Delete Query hibernate You could use HQL to delete data form the table and its almost same as native SQL query except in place on table and column name you have to use class name and its attribute name.
HQL insert Query hibernate You can insert data to the table using HQL unfortunately it does not work as SQL where we could directly insert data using below sample SQL query: