ObjectDB Database Search

51-100 of 112 results

How to apply constraints in collection attributes of entity.

How to apply constraints like unique , not null ...etc in collection attribute of a entity. Example ... to implement unique and notnull constraints on PhoneNumbers, means PhoneNumbers must not be duplicate or null How to do this?   Thanks Manoj Manoj Kumar Maharana For unique you can use

Persist error @ManyToMany how to define correct entities relationships

changes made to Category from Product. The category ID is taken from the webservice Object ID ( unique ... ; lo Hoel   New try with @Genreated index and @ Unique category ID, 1 category entity is created in ... .annotations. Unique ; import javax.persistence.CascadeType; import javax.persistence.Entity; import

jakarta.persistence.TableGenerator.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to primary key constraints

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key

jakarta.persistence.Table.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.Table UniqueConstraint[] uniqueConstraints (Optional) Unique constraints to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to any constraints specified by the Column

jakarta.persistence.GenerationType.TABLE

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness . May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.UUID

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.GenerationType UUID Indicates that the persistence provider must assign primary keys for the entity by generating an RFC 4122 Universally Unique IDentifier. May be used to generate primary keys of type UUID or String . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedEntityGraph.name

names must be unique within the persistence unit. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinTable.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable UniqueConstraint[] uniqueConstraints (Optional) Unique constraints to be placed on the table. These are only used if table generation is in effect. Defaults to no additional constraints. Default: {} Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SecondaryTable.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.SecondaryTable UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are typically only used if table generation is in effect. These constraints apply in addition to any constraints

jakarta.persistence.SequenceGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.SequenceGenerator String name (Optional) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Defaults to the name of the entity when the annotation occurs on an entity class or

jakarta.persistence.CollectionTable.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.CollectionTable UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. Default: {} Since: Jakarta Persistence (JPA) 1.0

Problem with @UniqueConstraint

@Index / @ Unique  annotations (hopefully in next versions) - you will have to use JDO @Index / @ Unique annotations: http://www.objectdb.com/api/java/jdo/annotations/indexes http://www.objectdb.com/java/jpa/entity/index For example: @ Unique ( members ={"lastName","firstName"}) And for a single

failure to enforce NOT NULL for java.lang.String

.IDENTITY) private Long id; @ Unique @Persistent(nullValue=NullValue.EXCEPTION) private String username ... successfully violate the @ Unique constraint: [ObjectDB 2.3.7] javax.persistence.RollbackException Failed to commit transaction: Unique constraint (org.wroth.ws.signup.Request[username]) failed

@Column length is not working.

I am using objectdb 2.8.3, I have a Entity class with a column that is declared as  @Column( unique = true, nullable = false, length = 16)  but when i m trying to insert a string ... ; silently ignored by ObjectDB, as specified in the documentation . Regarding unique , you may use @ Unique

ID format in objectdb 2.x for JDOHelper.getObjectId

Bhaskar In ObjectDB 1.x object IDs where always unique long numbers, so these numbers could represent objects uniquely without a type. ObjectDB 2.x, on the other hand, supports many other types of object IDs (primary keys), and consequently, objects are represented uniquely by the combination of (type

how to implement insert ignore in objectdb?

I want to implement Insert ignore in Objectdb. means if a column is declared as Unique but in case ... Maharana Ignoring duplicates is the default when unique is not specified, so the question is unclear. support Support But he said the column  is  specified as unique , right? pcockerell Pete

Problem with Composite indices

class Client { @Index ( unique = "true") private String name; } and a User class which looks like ... ; } So I want to be sure that each User which belongs to one Client has an unique Email address ... such constraint? Kind regards Markus doppelrittberger Markus Ritter This uniqueness constraint

Objectdb recovery

Hello, I have question regarding objectdb recovery when objectdb is not finished correctly (power outage). We are using following configuration: Is there any possibility of data loss when power outage? We have some mechanism for creating unique ids and it seems that this unique id was not

Update Entity references if we change the type of an entity

will have to be unique per entity type hierarchy rather than per type. There could be other (unknown ... ), with this option enabled "Object IDs will have to be unique per entity type hierarchy rather than per type

Are indexes implicitly created for relationships?

) should apply @ Unique on the @One side. But ObjectDB doesn't apply these indexes automatically, because of their overhead (which most users are not aware of). You should use the @Index or  @ Unique annotations explicitly to set indexes. support Support

Composite indexes

the smallest subset of unique records (like for example "isPublished" which is either true or false, then "room" which has 7-8 unique values etc...) #2. Can I use the same field as secondary member in many

Updating Entities

when using UPDATE queries is not unique to ObjectDB but a limitation of all the JPA implementation ... . Paygrade must remain unique and in its own EM, but Employee has a Paygrade Field. Thus, Employee

Index causes increased memory usage

Hello, In an effort to increase the speed of our queries with our embedded ObjectDB system, we configured our JDO file that defines our persistable objects with some unique String indices.  ... ; Again we noted that when indexing was enabled on a unique String field, our memory usage was far higher

Search with wildcards and index issue

Hi, I have a search using wildcards: SELECT $1 FROM CDI $1 WHERE $1.loginId LIKE '%*_last%2' ESCAPE '*' This works perfectly when loginId has NO annotations. Now if I add to loginId the following annotations: @Index( unique ="true") @Column(nullable=false, unique =true) the search no longer works. I

Searching lists within objects

attributeList = new ArrayList (); } @Entity @ Unique (members={"type","value"}) class Attribute {   ... unique index on type and value (as shown above). Always look for existing attribute before

Should I use ObjectDB and JDO?

API reference unique to ObjectDB, or is it an exact copy of some JDO 2.x API that I could find ... JPA/JDO code. Is the ObjectDB JDO API reference unique to ObjectDB, or is it an exact copy of some

Criteria Query results in a NoResultException instead of returning object

.RuntimeException: com.objectdb.o._NoResultException: No matching results for a unique query at org.jboss.seam ... ._NoResultException: No matching results for a unique query at com.objectdb.o.JPE.g(JPE.java:100

Duplicate Entity class names causes Exception in Query

console test apps! Thanks for your help. BTW the @ Unique annotations for non @id attributes makes

Entity Type is not found (error 301) in Query

email isn't unique !");     } }     pezifromvienna Peter Sauer

Migration problem

.EAGER) @Column(name = "isEnabled", unique = false, nullable = false) // @Column(columnDefinition

Query can't see recently persisted object

( { @Index( name = "MyClass_ind_1", members = { "oid" }, unique = "true" ) } ) @Entity public class

New to Product & Having An Issue

setDomainId(DomainId domainId) { this.domainId = domainId; } @ Unique (name="name2") public String getName

Change Sequcene Id

that you must verify that id collision is avoided and every entity object gets its own unique id). support Support

how to create only table structure.

hi, I want to create only a table without insertions of data. And also table contains constraints like not_null, unique , primary key etc. Ex: (In sql) create table emp (id int(5) primary key, name varchar2(20)); , so it will create only table. when we want to see the table structure

Query for objects persisted within the same transaction

I have a question concerning reading uncommited entities with query, within active transaction. For example, I read data from file. Each line contains value of one of entity's attributes but those values are not unique , so it's possible to have a multiple instances of the same entity. To eliminate

Memory consumption of empty Strings

. But after reloading the entities from objectdb, every empty String has become a new ( unique ) String

How to have a distribuited GWT application with ObjectDB and Spring?

. If every host runs its own ObjectDB database as a database server, each database has a unique url and each

Non Embedded byte[]

embedded, stored as a single "blob" as a unique ObjectDB persisted object?  (The section 4.4 talks

Updating existing persistence entries

runtime polymorphism and finds the correspondent row in the DB by the matching and unique ID field

A few questions on object database design

. After all, everything stored in player instances are unique to that player... So, is it OK to store

type.loader java.lang.ClassNotFoundException

, namely my application halts with an error about unique primary keys/ids on initial startup entity creation/wiring

Error during cascaded merge

= {"unit", "configDate"}, unique = "true") public class ChannelConfigurationSet implements

Failing to read entities under load in multithreaded tests

;it sometimes fails to read them from the DB with "No matching results for a unique query" error

Examples of queries

unique for GROUP BY but for common for queries that return multiple expressions in every result. support Support

Unexpected exception (Error 990) on find

something out. When I change my Id to a unique Column it seams to work without an error and the Doctor reports ... should have no effekt     // @Id // with this instead of the unique column it won't work     @Column( unique = true, nullable = false, length = 127)     private

combined index not used

a unique substring from the query plan XML, so specifying the index name should work. support Support ... ? If it is, then any unique substring from that query plan that doesn't depend on parameters should work

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

, CascadeType.PERSIST}, mappedBy="account", fetch = FetchType.LAZY) @JoinColumn(name = "project_id", unique =true

NullPointerException when using multithreading

of the objectdb jar.  The test application will add one million unique entities to the database

ObjectDB 2.3.3

). Added support of @Column( unique ="true") and equivalent ORM XML ( issue #550 ). Fixed @PrePersist