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. 投票するためにはログインが必要です。 次として送信する: キャンセル