Home » Search

About FetchType

31-40 of 130Refresh
JPA Doc
4

isLoaded(entity)

for which FetchType.EAGER has been specified have been loaded. The isLoaded(Object, String) method
JPA Doc
4

isLoaded(entity)

Method javax.persistence.PersistenceUtil boolean isLoaded(   Object entity ) Determine the load state of an entity. This method can be used to determine the load state of an entity passed as a reference. An entity is considered loaded if all attributes for which FetchType.EAGER has been specified
JPA Doc
4

isLoadedWithoutReference(entity, attributeName)

with FetchType.EAGER have not been loaded or that the state of the specified attribute has not
JPA Doc
4

isLoadedWithReference(entity, attributeName)

with FetchType.EAGER have not been loaded or that the state of the specified attribute has not
Result
4

java.io.Serializable

, EntityExistsException, EntityNotFoundException, Enum, EnumType, EventObject, Exception, FetchType
Result
4

java.lang.Comparable

java.lang Interface Comparable Implementing Classes: AccessType, PersistentAttributeType, BindableType, ByteIdentity, CacheRetrieveMode, CacheStoreMode, CascadeType, CharIdentity, Trimspec, DiscriminatorStrategy, DiscriminatorType, Enum, EnumType, FetchType, FlushModeType, ForeignKeyAction
JPA Doc
4

javax.persistence.PersistenceUtil

. An entity is considered loaded if all attributes for which FetchType.EAGER has been specified
Issue
3

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

; @ManyToOne(fetch = FetchType.LAZY) @JoinTable(name = "Element_owns_Element ... , but there are other cases without these that also exhibit the problem. Also, I don't think the FetchType ... ", cascade = CascadeType.ALL, fetch=FetchType.EAGER) public List getOwnedElements
Issue
3

New entity objects are duplicated on merge cascading

.ALL, fetch= FetchType.EAGER)         private List chapters;     }     @Entity     public ... long id;         @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         B b ... ;         @ManyToOne(fetch= FetchType.LAZY)         A owner;                 @OneToOne(fetch = FetchType.LAZY
Forum
3

Should derived fields of an EmbeddedId be manually maintained by app code?

javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.MapsId ... ; } } @EmbeddedId public ECompoundKeyMapItemId id; @ManyToOne(fetch=FetchType.LAZY) @MapsId("cont ... ; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence