TAILIEUCHUNG - Teach Yourself J2EE in 21 Days phần 4

Đầu tiên, nếu khách hàng của bạn có một tham chiếu đến một đậu kỳ họp không quốc tịch, mặc dù nó nên gọi khi nó được hoàn tất với các EJB, cuộc gọi phương pháp này không thực sự làm đặc biệt là nhiều. Đặc biệt, nó sẽ không phát hành bất kỳ tài nguyên đậu riêng của mình, như thể hiện rõ ràng bởi các sơ đồ biểu đồ nhà nước trong hình . | 314 Day 7 and the entity element defined as ELEMENT entity description display-name small-icon large-icon ejb-name home remote local-home local ejb-class persistence-type prim-key-class reentrant cmp-version abstract-schema-name cmp-field primkey-field env-entry ejb-ref ejb-local-ref security-role-ref security-identity resource-ref resource-env-ref query Looking first at the entity element much of it will be unchanged. What needs to be specified for a CMP entity are cmp-version Always set to . The value is supported only for legacy CMP Entity beans written to the EJB specification. abstract-schema-name Any unique name this defines the name used to identify the bean in EJB QL queries. It makes sense to base this on the name of the bean. In the case study the JobBean bean has a schema with the name of Job. cmp-field One for each cmp-field but not cmr-fields . In the Job bean the cmp-fields are ref customer and description. The location and skills fields are cmr-fields representing relations to the Location and Skill beans respectively and so do not appear. primkey-field This optional field is used when the primkey-class element does not identify a custom primary key class. It is not specified for the Job bean but for the Location bean for example it is specified and is set to name. query Defines an EJB QL query associating it with a finder or select method. Listing shows the entity element for the Job bean. Listing Job Bean s entity Element 1 entity 2 display-name JobBean display-name 3 ejb-name JobBean ejb-name 4 local-home local-home 5 local local 6 ejb-class ejb-class 7 persistence-type Container persistence-type CMP and EJB QL 315 Listing Continued 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 prim-key-class prim-key-class reentrant False reentrant cmp-version cmp-version .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.