> You mean passing the value as a parameter is not a good idea? Or something
else? (sorry, I'm not a native speaker) 
No, I meant what I was about to suggest may not be a good idea ;)

I'm now sure it's a bad idea :)
This is because there's not a single factory for creating these objects (it
seems that both tapestry and Cayenne will construct instances of these)

Why not move the method from the entity/POJO to a service defined in
tapestry IOC? The service could then hold a single reference to the @Symbol
and you could @Inject the service when it's required.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/use-symbol-value-in-POJO-tp5717426p5717450.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to