📄 product.ejbgrpx~122~
字号:
<?xml version="1.0" encoding="UTF-8"?>
<descriptors>
<ejb-jar.xml extralocation="" timestamp="1115926042984"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<display-name>productSec</display-name>
<ejb-name>productSec</ejb-name>
<home>product.productSecHome</home>
<remote>product.productSec</remote>
<ejb-class>product.productSecBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<entity>
<display-name>productBasicInfoEnt</display-name>
<ejb-name>productBasicInfoEnt</ejb-name>
<home>product.productBasicInfoEntRemoteHome</home>
<remote>product.productBasicInfoEntRemote</remote>
<ejb-class>product.productBasicInfoEntBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>product.productBasicInfoEntPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>productBasicInfoEnt</abstract-schema-name>
<cmp-field>
<field-name>p_id</field-name>
</cmp-field>
<cmp-field>
<field-name>p_type_id</field-name>
</cmp-field>
<cmp-field>
<field-name>p_name</field-name>
</cmp-field>
<cmp-field>
<field-name>p_spec</field-name>
</cmp-field>
<cmp-field>
<field-name>p_model</field-name>
</cmp-field>
<cmp-field>
<field-name>p_unit</field-name>
</cmp-field>
<cmp-field>
<field-name>p_image</field-name>
</cmp-field>
<cmp-field>
<field-name>p_remark</field-name>
</cmp-field>
<query>
<query-method>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select object(pro) from productBasicInfoEnt as pro where pro.p_name=?1</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_pname</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(p) from productBasicInfoEnt as p where p.p_type_id=?1 and p.p_name like ?2</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_spec</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(p) from productBasicInfoEnt as p where p.p_type_id=?1 and p.p_spec like ?2</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_id</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(p) from productBasicInfoEnt as p where p.p_type_id=?1 and p.p_id like ?2</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_model</method-name>
<method-params>
<method-param>java.lang.String</method-param>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(p) from productBasicInfoEnt as p where p.p_type_id=?1 and p.p_model like ?2</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_basic_mpk</method-name>
<method-params />
</query-method>
<ejb-ql>select Object(p) from productBasicInfoEnt as p where p.p_id=(select MAX(pb.p_id) from productBasicInfoEnt as pb)</ejb-ql>
</query>
</entity>
<entity>
<display-name>productTypeInfoEnt</display-name>
<ejb-name>productTypeInfoEnt</ejb-name>
<home>product.productTypeInfoEntRemoteHome</home>
<remote>product.productTypeInfoEntRemote</remote>
<ejb-class>product.productTypeInfoEntBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>product.productTypeInfoEntPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>productTypeInfoEnt</abstract-schema-name>
<cmp-field>
<field-name>p_type_id</field-name>
</cmp-field>
<cmp-field>
<field-name>p_type_name</field-name>
</cmp-field>
<cmp-field>
<field-name>p_type_remark</field-name>
</cmp-field>
<query>
<query-method>
<method-name>find_maxpk</method-name>
<method-params />
</query-method>
<ejb-ql>select object(pt1) from productTypeInfoEnt as pt1 where pt1.p_type_id=( select max(pt.p_type_id) from productTypeInfoEnt as pt)</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_smallpk</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(pt) from productTypeInfoEnt as pt where pt.p_type_id<?1</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_bigpk</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(pt) from productTypeInfoEnt as pt where pt.p_type_id > ?1</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_likename</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(pt) from productTypeInfoEnt as pt where pt.p_type_name like ?1</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_equal</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql>select Object(pt) from productTypeInfoEnt as pt where pt.p_type_id=?1</ejb-ql>
</query>
<query>
<query-method>
<method-name>find_alltype</method-name>
<method-params />
</query-method>
<ejb-ql>select Object(tp) from productTypeInfoEnt as tp where tp.p_type_id is NOT NULL</ejb-ql>
</query>
</entity>
<entity>
<display-name>prod_pb_infoEnt</display-name>
<ejb-name>prod_pb_infoEnt</ejb-name>
<home>product.prod_pb_infoEntRemoteHome</home>
<remote>product.prod_pb_infoEntRemote</remote>
<ejb-class>product.prod_pb_infoEntBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>product.prod_pb_infoEntPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>prod_pb_infoEnt</abstract-schema-name>
<cmp-field>
<field-name>p_id</field-name>
</cmp-field>
<cmp-field>
<field-name>p_tax</field-name>
</cmp-field>
<cmp-field>
<field-name>p_amount</field-name>
</cmp-field>
<cmp-field>
<field-name>p_maxlow</field-name>
</cmp-field>
<cmp-field>
<field-name>p_bprice</field-name>
</cmp-field>
<cmp-field>
<field-name>p_sprice</field-name>
</cmp-field>
<cmp-field>
<field-name>p_state</field-name>
</cmp-field>
<cmp-field>
<field-name>p_depositary</field-name>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -