murat8505 / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 1 forks source link

JPA Composite keys annotated with @Date don't have equals() and hashCode() methods #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have two JPA composite keys on my project. On Eclipse outline panel, I
can see the equals() and hashCode() methods.

However, when I deploy my application on JBoss 5.0 EAP (that's the .com
version, nor the community version), I got the following warns on my console.

10:02:48,713 WARN  [RootClass] composite-id class does not override
equals(): com.globalcollect.au.model.LitleRequestRecordPK
10:02:48,713 WARN  [RootClass] composite-id class does not override
hashCode(): com.globalcollect.au.model.LitleRequestRecordPK
10:02:48,713 WARN  [RootClass] composite-id class does not override
equals(): com.globalcollect.au.model.OrderRequestPK
10:02:48,713 WARN  [RootClass] composite-id class does not override
hashCode(): com.globalcollect.au.model.OrderRequestPK.

That's the snippet of my composite keys:

@Data
@Embeddable
public class LitleRequestRecordPK implements Serializable {
...
}

@Data
@Embeddable
public class OrderRequestPK implements Serializable {
...
}

What steps will reproduce the problem?
1.
2.
3.

Versions:

* Lombok v0.9.2
* Java JDK 6 1.6.0_14
* JBoss 5.0 EAP (.com version)

Original issue reported on code.google.com by wilder.r...@gmail.com on 24 Mar 2010 at 9:12

GoogleCodeExporter commented 9 years ago
I'm using Eclipse Galileo on Windows XP Professional.

Original comment by wilder.r...@gmail.com on 24 Mar 2010 at 1:04

GoogleCodeExporter commented 9 years ago
Can't reproduce; probably because you didn't include full snippets. For what 
its worth, sticking "@Embeddable" 
on a class makes not one iota of difference to lombok, at least right now, 
which means this boils down to: 
"@Data doesn't work". Presumably then lombok.jar isn't on the classpath when 
this code is being compiled.

Original comment by reini...@gmail.com on 26 Mar 2010 at 12:39