inotgo.com


Tool version compatibility problem
Integrate struts and hibernate The basic idea is to MVC In M Give the floor to hibernate handle
stay eclipse Create in struts_hibernate project
The project is based on Product Take the addition, deletion, modification and query of , Integrate Struts+Hibernate

The integration steps are divided into hibernate part and struts part
Correct


The basic idea is to MVC In Model The model part uses hibernate To do
 Train of thought diagram


The official account of programming , Follow and get the latest tutorials and promotions in real time , thank you .


Q & A area    
2018-12-02 Query q = s.createQuery("from Product p"); In p
Nothing

In this code Product After this p What does it mean ? It's a watch product- Are you ? If so, why can I use p Instead of . Query q = s.createQuery("from Product p");




3 One answer

Pu Shan
Answer time :2020-03-23
Similar to the alias in the table

all black
Answer time :2020-01-14
It's equivalent to new An instantiated object ,

A gentleman at night
Answer time :2018-12-26
It's an alias ! Little chest brother !



The answer has been submitted successfully , Auditing . Please My answer Check the answer record at , thank you
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see




2017-08-08 teacher , yes Model Model ?
LeoChen_Amazing




teacher , Your word is wrong , OCD patients say it's hard to accept
 Loading
 
               
 
               


1 One answer

how2j
Answer time :2017-08-08
Um , yes Model, Thanks for reminding :)



The answer has been submitted successfully , Auditing . Please My answer Check the answer record at , thank you
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see









Please... Before asking questions land
The question has been submitted successfully , Auditing . Please My question Check the question record at , thank you
about JAVA Frame -Struts+Hibernate- Introduction Your questions

Try to provide Screenshot code and Abnormal information , Help to analyze and solve problems . You can also enter this station QQ Group communication : 496725845
Ask questions and try to provide complete code , Environment description , The more conducive to the recurrence of the problem , The faster your question can be answered .
Have questions about the code in the tutorial , Please provide which step , Which line is in doubt , This makes it easy to quickly locate the problem , Improve the speed at which questions are answered
In the thousands of questions that already exist , A considerable proportion , Because of the use of and webmaster Different versions of the development environment Resulting in , For example jdk, eclpise, idea, mysql,tomcat Wait, the version of the software is inconsistent .
Please use the same version as the webmaster , You can save yourself a lot of learning time . The webmaster sorted out the software versions used in teaching , It's all here , Convenient for everyone to download : /k/helloworld/helloworld-version/1718.html

Upload screenshot