About primary key

141-150 of 200Refresh
JPA Doc
6

MapKeyColumn.unique

is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Default value: false Since: JPA 2.0
JDO Doc
6

newObjectIdInstance(pcClass, obj)

has no relationship with the values of the primary key fields of the persistence-capable instance on which the method is called. If the key is the wrong class for the object id class, null is returned ... ) Create a new instance of the class used by the parameter Class for JDO identity, using the key
Forum
6

Foreign key constraint issue

Hi, I'm trying to create two tables (Parent and Child) with a foreign key constraint from Child ... one specific case that foreign key constraint doesn't apply and I can't figure how to make it work ... get deleted, whereas I'd want to remove all orphaned child entities (as with a foreign key constraint
JPA Doc
6

javax.persistence.Table

by primary key mappings. Defaults to no additional constraints. Default value: {} Since: JPA 1.0 ... javax.persistence Annotation Table Target: Classes Specifies the primary table for the annotated entity. Additional tables may be specified using SecondaryTable or SecondaryTables annotation
Issue
6

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key" feature in JPA. Let's see what I am doing : @Entity public class ... embedded Id ) key with an enum type. Here is the code : package test; import java.util.*; import
Forum
6

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $1 LEFT OUTER JOIN $1.profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map   thanks, Alex Yes
Issue
6

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75 extra ... ------------------- [1] Page #3 entry 0 has unexpected object format [2] Page #3 entry 0 (key 'guest') has 11 extra bytes
Forum
6

retrieve without key?

. i'm loading data from an external source. i use keys from that source. since i have a singleton i ... and can't see an option to retrieve an object w/o using a key. can this be done? You can use a single result query. duetto
Issue
6

DISTINCT key causing internal exception on 2.6.4.b10

I observed that on new ObjectDb v.2.6.4.b10 query below causes internal exception SELECT DISTINCT $1 FROM Pa3DictionaryItem $2 JOIN $2.values $1 WHERE ($2.namespace == 'com.anritsu.pa3.ttcn3' AND $2.key == 'TliEvent' AND $1 != '') Query above also worked fine on ObjectDb version 2.6.1.b06
Forum
6

selecting objects that have a particular key/value in persistant HashMap

that the pMap field of some Person objects has the key/value pair "location'/'California'.  Can I create