Hi, Reading through your postings, I'm trying to figure out what actually helped you get this running. Was it the Runtime Enhancement agent that got you working? Or, was it the changes to your code? Or, were both required?
The Runtime Enhancement agent is already part of the 1.2.x base, so there's nothing to merge back to the 1.2.x base from that perspective. Thanks, Kevin On Wed, May 19, 2010 at 5:39 AM, stlecho <[email protected]> wrote: > > When using OpenJPA v2.0.0 and the OpenJPA Agent for Runtime Enhancement, > I've > been able to make it work :o). The modifications I had to do are listed > below. > > When switching back to OpenJPA v1.2.2 and leaving out the OpenJPA Agent for > Runtime Enhancement the modified code does not work :o(. > > Unfortunately, the v2.0.0 is not (yet) a standard within the company I'm > working so I can not use it. > Would it be possible to fix this issue in the v1.2.x version of OpenJPA ? > > Non-working version > [code] > public class ViesMessage<RESP extends ViesResponse> extends IdentityObject > { > @OneToMany(cascade=CascadeType.ALL, > mappedBy="message",targetEntity=VATRResponse.class) > protected List<RESP> responses; > [/code] > > Working version > [code] > public abstract class ViesMessage<RESP extends ViesResponse> extends > IdentityObject { > @OneToMany(cascade=CascadeType.ALL) > protected List<RESP> responses; > [/code] > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/ArgumentException-when-using-generics-tp5073975p5074351.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
