|
From: Stephane B. <ste...@be...> - 2004-07-06 14:01:57
|
I think I will remove this bean and push up all the methods. I'm banging my head to find a solution to keep it how it is done right now, but frankly I have too many issues to solve and this is not worth spending the time on it, especially as it is used only in one place: HardTokenPropertyEntityBean. XDoclet generates a create() method only for a concrete bean (which makes sense in a way and not if we think of it as some kind of factory method in the superclass) It will also generates a JNDI_NAME and COMP_NAME in the home interface (only for a concrete bean of course). Covariant return type do not exists in Java and XDoclet creates return type matching the local interface of the entity bean for the finders method in the home interface, this will of course conflicts with the superinterface that return the base class. I cannot avoid not generating the interface and use only the super interface otherwise it does not generate the home interface. This is somewhat related to issue XDT-120 in Jira but there is no chance to have something like this before the year 2043. Annotations will be used next year, so it's not worth it. Maybe someone got an idea how to fix it, but I don't. If you do, please speakup. |