当访问struts2标记中的foriegn键列时,是否发生数据库命中(database hits occur or not when access foriegn key columns in str

编程入门 行业动态 更新时间:2024-10-10 23:25:32
当访问struts2标记中的foriegn键列时,是否发生数据库命中(database hits occur or not when access foriegn key columns in struts2 tag)

我使用了struts2标签来获取jsp页面中的动作类属性值。我有一个名为employee.In的表,即employee表,地址是foriegn key。我在延迟fetcthing中获取员工详细信息并使用list加载值。

List<Employee> empList=cr.list();

当我使用下面的标签从jsp页面中的struts2标签获取地址时。

<s:property value="address.getDoorno()"/>

我知道在struts2中,动作类属性存储在valuestack中。

我怀疑是valuestack存储代理对象或原始对象,如果存储代理对象数据库命中是否发生,如果原始对象在值堆栈时将代理对象转换为原始对象?

任何帮助将不胜感激!!

I have used struts2 tags for getting action class property values in jsp page.I have a table called employee.In that employee table, address is the foriegn key.I get a employee details in lazy fetcthing and load the values using list.

List<Employee> empList=cr.list();

when i get the address from struts2 tags in jsp page using the below tag.

<s:property value="address.getDoorno()"/>

i know in struts2 the action class properties are stored on the valuestack.

my doubt is the valuestack stores the proxy object or original object and if stores the proxy object database hit occurs or not,and if original object when value stack converts the proxy object to original object?

Any help will be greatly appreciated!!

最满意答案

由于您已配置延迟加载struts 2将存储代理对象。 您可以在会话本身内启用预先加载或初始化地址对象

As you have configured lazy loading struts 2 will store proxy object. Either you enable eager loading or initialize the address object within session itself

更多推荐

struts,address,jsp,电脑培训,计算机培训,IT培训"/> <meta name="descriptio

本文发布于:2023-08-01 02:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1354185.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标记   发生   数据库   键列时   foriegn

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!