Everything works with Toplink essential but.. [message #379605] |
Tue, 19 August 2008 06:31 |
Eclipse User |
|
|
|
Originally posted by: bipul_dutta.hotmail.com
So many problems with Eclipselink. This is how the exception goes
"Caused by: java.lang.NoSuchFieldError: customSegments"
where getCustomSegments() is getter for an @Embedded entity.
What should I do? I reiterate, Toplink Essential doesn't have any issue
with it.
Thanks.
Buraluit.
|
|
|
|
Re: Everything works with Toplink essential but.. [message #379618 is a reply to message #379609] |
Tue, 19 August 2008 21:11 |
Eclipse User |
|
|
|
Originally posted by: bipul_dutta.hotmail.com
Here are the classes (cut down for clarity)
EMBEDDABLE class:
@Embeddable
@SuppressWarnings("serial")
public class Segment30 implements Serializable {
public Segment30() {
this( null );
}
public Segment30( Segment30Type data) {
super( data, Segment30Type.class );
}
@Column(name="CUSTOM01")
@StringLength(maxLength=150)
public String getS1() {
return getData().getS1();
}
public void setS1(String value) {
getData().setS1( value );
}
}
OWNING class has following:
@Embedded
@AttributeOverrides
({
@AttributeOverride( name="s1", column=@Column(name = "CUSTOM01")
) })
public Segment30 getCustomSegments()
{
return customSegments.getEntity();
}
public void setCustomSegments(final Segment30 value)
{
customSegments.setEntity( value );
}
Hope it helps you to help me.
Thanks in advance.
Buraluit
|
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds