Learn AppFuse, generate with xdoclet code

xiaoxiao2021-03-06  33

Today, I will continue to play with Ant XDoclet, quite addiction, and the practice of practice successfully according to POJO automatically generates the following 9 stuff:

1. Ibatis's SQLMAP configuration file (already introduced in the previous blog)

2.DAO interface

3. DAO's JUnit Test Class

4.Dao IBATIS IMPL class

5.Struts an actionform class

6. JSP page for new or modified

7.Struts ACION class

8.Service interface

9.Service's IMPL class, injecting DAO with a setter method.

See the automatic generation of a bunch of staps, good, huh, huh, huh. Although it is just a hung embryo, it is necessary to change.

In addition, here, the XDT template in the AppFUse will often use the Org.Example.antbook.xdoclet.formtagshandler this class. After research, its tag has several features in the XDoclet API, it is beneficial The role of supplements is recorded as follows:

1 first lowercase

2 Parent package name

3 is not very clear, it seems to be related to @ hibernate.id, judging if the main key attribute

转载请注明原文地址:https://www.9cbs.com/read-61777.html

New Post(0)