tag:blogger.com,1999:blog-8727965405539153082.post7685564595378459512..comments2024-03-25T21:49:25.351-07:00Comments on ADF Practice: About the Scope of EntityDef and ViewDefEugene Fedorenkohttp://www.blogger.com/profile/05514757367086948632noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8727965405539153082.post-54751371545507180002014-04-24T08:27:52.492-07:002014-04-24T08:27:52.492-07:00Hi Nag,
Yes, if EntityDefImpl is created dynamical...Hi Nag,<br />Yes, if EntityDefImpl is created dynamically using EntityDefImpl(String name) it will have session scope.Eugene Fedorenkohttps://www.blogger.com/profile/05514757367086948632noreply@blogger.comtag:blogger.com,1999:blog-8727965405539153082.post-47934378480322835632014-04-24T08:22:37.348-07:002014-04-24T08:22:37.348-07:00This article is very informative.
I am using Jdev...This article is very informative. <br />I am using Jdev 11.1.2.0.0<br />I have tried the scenario mentioned here with Declaratively created Entity object and the behavior is as you explained.<br /><br />Then tried another scenario, create an EntityDefImpl at run time as below and adding AttributeDef depends on login user.<br /> EntityDefImpl newEntity = new EntityDefImpl(DYNAMIC_EO);<br /> newEntity.setFullName(DYNAMIC_PACKAGE + "." + DYNAMIC_EO);<br /><br />eg: For user1, EntityDefImpl has 2 attributes.<br /> For user2, EntityDefImpl has 4 attributes.<br />I have logged into the application with User1,User2 simultaneously and observation was, each user can see EntityDefImpl attributes on UI as expected.<br /><br />Will EntityDefImpl scope changes to Session Scope, if EntityDefImpl creates at runtime?<br /><br />Thanks<br />NagNagnoreply@blogger.com