users@glassfish.java.net

Re: glassfish v3.0 / v3.1 change in JPA2; was: glassfish v3.1 & jpa: java.lang.AbstractMethodError: ...._persistence_setId(Ljava/lang/Object;)V

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Sat, 27 Feb 2010 19:05:42 +0100

Ok, it seems this is changed between glassfish v3 and v3.1

In Glassfish v3.1 JPA expects helper methods that have the
same upper/lowercase combination as one would expect in
a java bean:

public class SomeObject{

@Id
private int id;

public int getId(){..}
public void setId(...){...}

// helper methods required in glassfish v3.0
   public int _persistence_getid(){..}
   public void _persistence_setid(int){..}

// helper methods required in glassfish v3.1
   public int _persistence_getId(){..}
   public void _persistence_setId(int){..}
}


I've upgraded to eclipselink 2.1.0-SNAPSHOT (was using 2.0.0)
but the static code weaver
still weaves the helper methods in lowercase.


Anyone has a tip?
How do you do your weaving with maven?


-- 
[url=http://www.dominikdorn.com]Dominik Dorn[/url]
Tausche Deine [url=http://www.studyguru.eu] Lernunterlagen [/url] auf
[url=http://www.studyguru.eu] http://www.studyguru.eu[/url]!