Skip to content

Manuel Baumann

  • home
  • articles
  • about

Tag: JPA

persitsing an interface type with JPA

Consider this scenario. You have several classes implementing the same interface and you’d like to persist this interface type within an entity. The JPA is not able to handle that, but there is a workaround! Lets make an example: A Plate (entity) has the attribute of type Fruit (interface). The apple, orange and the banana… Continue reading persitsing an interface type with JPA

Published November 20, 2011
Categorized as Software Tagged Java, JPA
Manuel Baumann
Proudly powered by WordPress.