protected ClassT getValueClass()
{
return (ClassT) ((ParameterizedType)
getClass().getGenericSuperclass()).getActualTypeArguments()[0]; }
I use something similar in DAOs, idea came from here:
https://www.hibernate.org/328.html
Thanks!! Had an abstract getEntityClass() method for my
Hi Thiago,
Hi Hammer! :)
Friends call me nille.
Hey! That's my open source code being used by someone besides me! Nice. :D
Just trying to learn from the masters ;-)
.Maybe the solution to what you want to do is to use
ApplicationStateManager directly.
That's the trick! Thinking about your
On Tue, 23 Jun 2009 22:32:25 +0200, nille hammer
tapestry.nilleham...@winfonet.eu wrote:
That's the trick! Thinking about your hint I rewrote GenericEntityPageT a
bit. Code follows:
/**
* @return the page to be forwarded to in case value does not exist as
SSO
*/
Hi Martin,
thanks for the hint.
protected ClassT getValueClass()
{
return (ClassT) ((ParameterizedType)
getClass().getGenericSuperclass()).getActualTypeArguments()[0];
}
I use something similar in DAOs, idea came from here:
https://www.hibernate.org/328.html
Similar to the
Em Tue, 23 Jun 2009 17:32:25 -0300, nille hammer
tapestry.nilleham...@winfonet.eu escreveu:
Hi Thiago,
Hi Nille!
Hi Hammer! :)
Friends call me nille.
Just joking. :P
Hey! That's my open source code being used by someone besides me! Nice.
:D
Just trying to learn from the masters ;-)
Em Mon, 22 Jun 2009 19:08:40 -0300, nille hammer
tapestry.nilleham...@winfonet.eu escreveu:
Hi List,
Hi Hammer! :)
@SessionState
private T value;
@SessionState is handled by ApplicationStateManager per type, so I guess
that it looked at your field and saw an Object.
I have