Sampsa Sohlman 11 年之前 May be the SQLQuery(Impl) could be extended so that if there is entity's interface as parameter then, it would find the implementation automatically.Anyway, good post. 请登录以投票。 以……回复 取消
jelmer kuperus 11 年之前 FYI You are using _classMap in a non threadsafe wayAlso by holding on to the impl class references in a map you are effectively preventing the webapp classloader from being garbage collected. (not a problem if you just use it to load classes from the ROOT webapp, since it's not hotdeployable, but it is if you use this same trick do load classes from another standalone portlet) You'll be blowing up your permgen space 请登录以投票。 以……回复 取消
Jay Patel 11 年之前 Nice Post... 请登录以投票。 以……回复 取消 David Truong Jay Patel 11 年之前 Hey jelmer,Good points. I will update my code so that if the classLoader is not ROOT it won't put it in the map. You should consider filing a jira issue also because this code is a copy of what is from DynamicFactoryUtilThanks for your comments guys 请登录以投票。 以……回复 取消 David Truong David Truong 11 年之前 Hey Sampsa,That would make things too easy for you guys then! Haha JK. Good suggestion. It is even more valid because the look up is already being done for dynamic queries. Very little code would have to be written for this improvement. 请登录以投票。 以……回复 取消 Muhammed Shakir AK Misarwala David Truong 11 年之前 It is a bit challenging to add a new action with a custom jsp and ensuring that the jsp is wrapped into the theme properly. I have got the solution and it works like a charm. You can find the solution here : http://www.liferayaddict.com/home/-/blogs/new-action-in-hook-in-liferay-6-1 请登录以投票。 以……回复 取消
David Truong Jay Patel 11 年之前 Hey jelmer,Good points. I will update my code so that if the classLoader is not ROOT it won't put it in the map. You should consider filing a jira issue also because this code is a copy of what is from DynamicFactoryUtilThanks for your comments guys 请登录以投票。 以……回复 取消 David Truong David Truong 11 年之前 Hey Sampsa,That would make things too easy for you guys then! Haha JK. Good suggestion. It is even more valid because the look up is already being done for dynamic queries. Very little code would have to be written for this improvement. 请登录以投票。 以……回复 取消 Muhammed Shakir AK Misarwala David Truong 11 年之前 It is a bit challenging to add a new action with a custom jsp and ensuring that the jsp is wrapped into the theme properly. I have got the solution and it works like a charm. You can find the solution here : http://www.liferayaddict.com/home/-/blogs/new-action-in-hook-in-liferay-6-1 请登录以投票。 以……回复 取消
David Truong David Truong 11 年之前 Hey Sampsa,That would make things too easy for you guys then! Haha JK. Good suggestion. It is even more valid because the look up is already being done for dynamic queries. Very little code would have to be written for this improvement. 请登录以投票。 以……回复 取消 Muhammed Shakir AK Misarwala David Truong 11 年之前 It is a bit challenging to add a new action with a custom jsp and ensuring that the jsp is wrapped into the theme properly. I have got the solution and it works like a charm. You can find the solution here : http://www.liferayaddict.com/home/-/blogs/new-action-in-hook-in-liferay-6-1 请登录以投票。 以……回复 取消
Muhammed Shakir AK Misarwala David Truong 11 年之前 It is a bit challenging to add a new action with a custom jsp and ensuring that the jsp is wrapped into the theme properly. I have got the solution and it works like a charm. You can find the solution here : http://www.liferayaddict.com/home/-/blogs/new-action-in-hook-in-liferay-6-1 请登录以投票。 以……回复 取消
Harvey Tamayo 7 年之前 Great! i asked to me the same question "If DynamicQueryFactoryUtil.forClass can, me too. Right?" thanks. For now i have other issue, i try to do a CustomSQL Query where IS SELECT * customTable INNER JOIN JournalArticle. For now i don't find other solution that modifying portlet-hbm adding the portal table configuration from portal-hbm. Like is suggested in http://www.liferaysavvy.com/2013/02/getting-data-from-multiple-tables-in.html. But if you are interested and you find other solution, that will be great. Regards from Colombia. 请登录以投票。 以……回复 取消