-
public final class JPAContainer7Kt
-
-
Method Summary
Modifier and Type Method Description final <T extends Any> JPAContainer<T>jpaContainer()Creates a container which lists all instances of given entity. final <T extends Any> JPAContainer<T>jpaContainer(Class<T> entity)-
-
Method Detail
-
jpaContainer
final <T extends Any> JPAContainer<T> jpaContainer()
Creates a container which lists all instances of given entity. To restrict the list to a particular entity only, simply call JPAContainer.addContainerFilter on the container produced.
Containers produced by this method have the following properties:
The container's Item IDs are not the entity instances themselves - instead, Item ID contains the value of the JPA entity ID. This is important when using the container together with AbstractSelect as the select's value is taken amongst the Item ID.
Item's Property IDs are String values - the field names of given JPA bean.
-
jpaContainer
final <T extends Any> JPAContainer<T> jpaContainer(Class<T> entity)
-
-
-
-