Home » Search

About OneToOne

21-30 of 62Refresh
JPA Doc
4

javax.persistence.FetchType

See Also: Basic ElementCollection ManyToMany OneToMany ManyToOne OneToOne FetchType EAGER Defines that data
JPA Doc
4

javax.persistence.MapsId

javax.persistence Annotation MapsId Target: Fields (including property get methods) Designates a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key, an attribute within an EmbeddedId primary key, or a simple primary key of the parent entity
JPA Doc
4

PrimaryKeyJoinColumn.columnDefinition

Annotation Element javax.persistence.PrimaryKeyJoinColumn String columnDefinition (Optional) The SQL fragment that is used when generating the DDL for the column. This should not be specified for a OneToOne primary key association. Defaults to the generated SQL to create a column of the inferred type. Default value: "" Since: JPA 1.0
JPA Doc
4

PrimaryKeyJoinColumn.name

for the referencing entity (OneToOne mapping). Default value: "" Since: JPA 1.0
JPA Doc
4

PrimaryKeyJoinColumn.referencedColumnName

key column for the table for the referencing entity (OneToOne mapping). Default value: "" Since: JPA 1.0
Forum
4

Left join fetch behaviour doesn't retrieve children?

/ removing the mappedBy on the OneToOne annotation. Note that i don't create any entity on that attribute ... entityChild2 = null;   MyEntity(String name) {    this.name = name;   }   // @OneToOne(targetEntity = MyEntityChild2.class)   @OneToOne(targetEntity = MyEntityChild2.class, mappedBy = "myEntity
Forum
4

Performance issues on aggregate query

public String objectNameUpper; @OneToOne @Index public ObjectType objectType; @Index public Integer ... > container = new ArrayList(); @OneToOne(fetch=FetchType.LAZY) //@Index public ObjectNode currentLocation; @OneToOne(fetch=FetchType.LAZY) @Index public ObjectNode currentOperation
Forum
4

significant performance decrease

objectName; @OneToOne public ObjectType objectType; @Index public Integer state ... =FetchType.LAZY) public List container = new ArrayList(); @OneToOne(fetch=FetchType.LAZY) public ObjectNode currentLocation; @OneToOne(fetch=FetchType.LAZY
Forum
2

@OneToMany(fetch = FetchType.LAZY) list is always null

and MERGE the entity containing another one (OneToOne) entity with a byte[] array without calling ... ; } // getters and setters } public class Parent { // ...id @OneToOne(fetch ... ) private int id; @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private OTO oto
Issue
2

ArrayIndexOutOfBoundException

final class CacheableJobStat { @OneToOne(fetch = FetchType.EAGER) private CacheableJobInfo ji; @OneToOne(fetch = FetchType.EAGER) private CacheableJobLog jl; } Where CacheableJobInfo ... the @OneToOne(fetch = FetchType.EAGER) annotation. I am not sure wheather this annotation is allowed when not