Internal Website Search

21-30 of 70 resultsRefresh

Performance issues on aggregate query

> @OneToOne @Index public ObjectType objectType; @Index public Integer state ... <ObjectNode> container = new ArrayList<ObjectNode>(); @OneToOne(fetch=FetchType.LAZY) //@Index public ObjectNode currentLocation; @OneToOne(fetch=FetchType.LAZY

significant performance decrease

; public Integer nodeToProcess; @Index public String objectName; @OneToOne public ... ;(); @OneToOne(fetch=FetchType.LAZY) public ObjectNode currentLocation; @OneToOne(fetch ... ; isNextOperations = new ArrayList<ObjectNode>(); @OneToOne(fetch=FetchType.LAZY

Left join fetch behaviour doesn't retrieve children?

> Test by yourself by adding / removing the mappedBy on the OneToOne annotation. Note that i ... ; // @OneToOne(targetEntity = MyEntityChild2.class)   @OneToOne(targetEntity = MyEntityChild2.class ... 000 entities with for each 1 entity with @OneToOne(mappedBy attribute) 2- Retrieve only 10 000

General Performance Issues Illustrated with a Specific Method

javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table ... ) private Long id; private static final long serialVersionUID = 1L; @Index @OneToOne

PrimaryKeyJoinColumn.name

the same name as the primary key column for the table for the referencing entity (OneToOne

PrimaryKeyJoinColumn.columnDefinition

. This should not be specified for a OneToOne primary key association. Defaults to the generated

PrimaryKeyJoinColumn.referencedColumnName

entity (OneToOne mapping). Default value: "" Since: JPA 1.0

javax.persistence.AssociationOverrides

; @Version protected Integer version; @ManyToOne protected Address address; @OneToOne

javax.persistence.MapsId

> or OneToOne relationship attribute that provides the mapping for an

ArrayIndexOutOfBoundException

CacheableJobStat { @OneToOne(fetch = FetchType.EAGER) private CacheableJobInfo ji; @OneToOne ... cascade, but explicitly by calling persist. The problem dissapeared when removing the @OneToOne