Hey all, I'm using xdoclet 1.1 and mvcsoft 1.0 to generate my code. In one of my entity beans I want to use a select method to get a Collection of String (the name string from related entity beans).
I've added the @ejb:select tag with the appropriate QL statement to the document. Then I defined an interface method that calls the select method and returns the collection as a Vector. When I try to compile, I get a "cannot resolve symbol" error. If I add an abstract method to declare the select method, everything compiles; but, when I run mvcbuild on it (part of mvcsoft) I get compilation errors. Is the first way that I tried @ejb:select correct (no abstract method declared in the Bean class)? Or is the second way correct and I have an issue with mvcsoft? Or am I completely missing altogether? Here's excerpt of the first attempt: ---------------------------------- /** * @ejb:select signature="java.util.Collection ejbSelectGroupNames(java.lang.Long userId)" query="SELECT g.name FROM User AS u, IN(u.groups) AS g WHERE g.active = true AND u.id = ?1" */ /** * @ejb:interface-method view-type="local" */ public Vector getGroupNames(Long userId) { return new Vector(ejbSelectGroupNames(userId)); } ---------------------------------- And the second attempt I added: ---------------------------------- public abstract Collection ejbSelectGroupNames(Long id); ---------------------------------- -- Joseph Hindsley Systems Architect ProviderLink, Inc. _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user