Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Nested class entities

Yes, Embeddable and Embedded are your friends ;-)

Links:
http://wiki.eclipse.org/Introduction_to_EclipseLink_JPA_(ELUG)#.40Embeddable

Codesnippet:

@Entity
class A {
  @Id
  private Integer id;
  
  @Embeddable
  public static class B {

  }

  @Embedded
  private B b;

}



Jaka Jančar wrote:
> 
> Hi!
> 
> Does JPA / EclipseLink support using @Entity on static nested classes?
> 
> Jaka
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Nested-class-entities-tp23575979p23576197.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top