About composite

31-40 of 72Refresh
JPA Doc
4

MapKey.name

is a composite primary key and is mapped as IdClass, an instance of the primary key class is used as the key. Default value: "" Since: JPA 1.0
JPA Doc
4

MapsId.value

Annotation Element javax.persistence.MapsId String value (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity’s primary key. Default value: "" Since: JPA 2.0
Issue
4

combined index not used

to state = 2 or state = 3 The query planner considered the composite index but eventually selected ... the composite index was found and can be fixed.  As there are too many possible combinations ... not evaluate all of them and missed the best combination of using the composite index on these 4
Forum
2

possible index required for improving query performance

that a composite index can be used as a single index of the first element (with a small penalty compared ... a composite index makes a difference. Hi, I've been actually dealing with this, so it would be best ... objectdb select which index to use when there are multiple indexes? In this scenario we have a composite
Forum
2

Queries are slow on a large database

. For diagnosis please try the same query without the ORDER BY clause. A composite index in ... will try composite index later. However there is one thing I haven't managed to figure ... the same directory as the database file is not sufficient. In addition, consider using composite
Forum
2

Broken @ManyToOne reference

is only part of the primary key now. Hi support,   just tried the fixed version. Two notes: 1. For a composite key ... class to represent composite primary keys in a portable JPA way. Apparently implementing that Hibernate ... ).hasSingleIdAttribute()); prints true, which is not the case since the Child class ID is a composite.   Regards
Forum
2

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

(EventDispatchThread.java:91) It seems that the query is executed using a composite index on the mapFromCli field. Could you please provide details on composite indexes that include that field? Unexpectedly ... ) it will probably help understanding the exact cause. The mapFormCli filed is a member of a number of composite
Forum
2

Efficient query on EmbeddedId

.field1 and entity.id.field2 form a composite index together, in the order in ... of defining a composite index on ordinary non ID fields (although not exactly the same). You can not use ... may be slower than a query on the second field (non ID) in an ordinary composite index, since a full scan
Forum
2

java.lang.NullPointerException when using ORDER BY

. using the composite index with the unexpected entry, so both issues may be solved together. I am not ... :9085' AND r.callDirection == 0)) Both mapToCli and callDirection are part of composite indices ... index while startDate, callDirection and mapToCli are members of (different) composite indices
Forum
2

More Efficient Primary Keys

. We already need the key before the entities are persisted so that we can build even references. a) Composite ... it is a composite primary key with the same size and structure. (b) requires instantiation ... if allocated sequentially rather than randomly). It is unclear if a composite of two longs