ObjectDB Database Search
101-150 of 151 resultsChanging Primary Key I have a " Table " that currently has @Id private String userId; @Id private long range; private String someOtherField; I need to add a @Id to someOtherField. But when I add that, and query the table all the PK fields are null or 0. What can I do to modify primary keys?   | |
index - data rewrite Hi we have found that applying indexes on an existing table erases the data. Are we doing something wrong. Thanks peric.emil Emil Perić Starting version 2.6.6 ObjectDB automatically activates new ... This was done few months ago and we just moved on. As far i remember the data records in the table | |
Schema Evolution Question.summaryframework.database.SummaryStagingDatabase:75 It may be worth noting that the table that was being read ... work? Again, notable - the table (with the old schema) being read by the client using the new | |
Multitenancy with discriminator Hello, I have a very large business application that makes use of the Hibernate "Filters" feature and of the EclipseLink "Single Table Multitenancy with discriminator" feature in order to implement ... "Filters" or EclipseLink "Single Table Multitenancy with discriminator" to your very interesting | |
possible index required for improving query performance Hi, I have the following entity class: @Entity @ Table @Indices({ @Index(members={"relationshipType", "party"}), @Index(members={"relationshipType", "otherParty"}), @Index(members={"relationshipType ... the manual : In the [Parameters] table provide arguments for parameters (if any). An entity object | |
using DbUnit with ObjectDb: ... *but* as you can see, the element and attribute names vary from table to table .. not so easy | |
Failing to read entities under load in multithreaded tests. I'm using version 2.3.7. Test entities: @Entity @Inheritance(strategy=InheritanceType. TABLE _PER_CLASS ... ; @Id @GeneratedValue(strategy=GenerationType. TABLE , generator | |
Error using query with MAX() function I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. @Entity @ Table (name = "TestEntity", schema | |
IDs of Entities suddenly became UUIDs? that this even occurrs on the same " Table " -- some saved Entitities of same type do still have a Long | |
Possible cause for "Enhancement of type ... is old and cannot be used": FAILS on @OneToMany with @TableGenerator/strategy = GenerationType. TABLE (www.objectdb.com | |
Problem of query With an aggregate function Hi I would know if this type of query is supported By JPA: select sum(nb1), sum(nb2), sum(nb3) from table If yes I have this methode that return a list of Long: public List sommeClassesRep(Choix choix) { Query listClassRepHost = em.createQuery("SELECT SUM(h.nb1xx), SUM(h.nb2xx),SUM(h.nb3xx),SUM(h | |
Immediately retrieve unique id Mortimer Cladwell To obtain an automatic id on persist before commit use sequence or table strategy . support Support | |
problem with lazy loading - unittest project attached;and TABLE strategies generate automatic values as soon as new entity objects are persisted, i.e. before | |
"Failed to serialize instance" of Set problem Hi, I'm trying to persists objects defined as follows: @Entity @Inheritance(strategy = InheritanceType.SINGLE_ TABLE ) public abstract class AbstractContainer { ... @OneToMany(fetch = FetchType.LAZY, mappedBy="parent") private Set abstractContainers = com.google.common.collect.Sets | |
ManyToMany Set is null Why can the field "contracts" be "null"? ---------- @Entity @Inheritance(strategy = InheritanceType. TABLE _PER_CLASS ) public class Person implements Serializable,Subject { @Id @GeneratedValue private long id; @ManyToMany(fetch = FetchType. EAGER , cascade | |
Migration problem Will this code work on objectdb ? I was using it on mariadb , i need to inject GenericEntity to many tables to watch user activities. If this wont work , does objectdb has any other solution to this ? do i need to use jakarta objectdb or standard ? package com.manage.jpa; import lombok.Builder | |
zip file or JAR manifest missing a useless object to make the table exists, that is unnecessary in MySQL. I use ObjectDB exactly | |
Issue with upper? of the last available $1 in the table ??? Alex quasado Alexander Adam The two queries look exactly | |
Composite Index error 328 Hi , when i try to use this entity as shown below: package persistence.jpa.models; import javax.jdo.annotations.Indices; import javax.persistence.*; import java.io.Serializable; import java.sql.Date; import java.util.Objects; @Entity @ Table (name = "usrlist", schema = "posts") @NamedQueries | |
Join performance in Objectdb SELECT count(e) FROM Meta e, ImageNet i, Page p WHERE e.idImage=i.id AND e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA gzdillon Lai Yang Now, after 2 hours | |
persitencia (Preguntas y respuestas) a table order by a field use an ORDER BY query. Query execution will be faster in the field | |
Performance problem. In our web application this behaviour gives aprox 10-13 s of refreshing a data table vs 2 second | |
@AttributeOverrides , and postgresql + own TYPE of table Property (attached) and i please need your help, or i will die in front my keyboard | |
Insertion Speed Rate and Batch Load 1. I got about 10K inserts / second, is it normal? I would expect more than that, like close to 100K/second. I can definitely do 80K inserts/seconds on Oracle with batch insert on table with one primary key. 2. Is batch update/insert operation supported? I attached the files. edy_at_ssn Edy Oey | |
Using Enum type in NamedQuery: Field is not found in type used to scan my @Entity classes and create tables before the application even started | |
Problem with @OrderBy When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @ Table (name="Defects", schema = "myDB") public class Defects implements Serializable { ... ...   | |
Method not found on... I've got this class... @Entity @ Table (name = "language") public class Language implements Serializable{ ... private List aliases; ... public boolean hasAlias(List alai) { return ... ; } ... } When I try to make this JPQL query: SELECT g from Language g where g.hasAlias("espanol", "italian | |
@PrePersist Implementation ==== @Entity @EntityListeners({AuditLogAction.class}) @ Table (name = "IPT_AUDIT_LOG") public class | |
Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices Hello, I have a problem with inserting of many entities. We use strings as primary key and indices. But if the db table of the entity type contains more and more data then the inserting of further entities needs also more and more ram memory, this leads to out of memory exceptions. But if use | |
Transaction isolation support? the User table , just to make the explanation more easy). Now imagine the following where A and B | |
Visibility of changes in Transaction is not visible to a JPA QL Query.newTotal So are there rules for " table level/entity class level" operations | |
Getting java.lang.ArithmeticException: / by zero Binit Bhaskar This division by zero occurs in some hash table that happens to have a 0 size (but I | |
JDO sequences from ORM file null. The package.jdo file is definitely being read, because when I put strategy=" TABLE " in | |
Updating existing persistence entries object from the bean editor and save its current state to the db table /row it was initially loaded | |
Uninitialized primary key (id = 0) table - you can set an initial ID which is larger than any existing ID to avoid any conflict. support Support | |
How do I Remove an entity from the Database ? Hi I no longer want to use an Entity .. (in SQL terms the whole Table ) ... How do I delete it ? Thanks Paul Newman pnewman Paul Newman Currently classes cannot be removed but this only affects the list of classes in the Explorer. Removing of classes will be supported in the future. support Support | |
large numbers of records Hi, does anyone have experience with database with more than billion records (ie. more than 1000 million records) in one table . What is the limit of ObjectDB and is the database still fast. We are planing to do an application which handles document records and there metadata. peric.emil Emil | |
Help with 'not like/lower' query (with a subsequent fetch of a page of 20 results per table view on the UI) where a user belongs | |
Object explorer cannot open odb file. ObjectDB many-to-many relationship I created a data model to test many-to-many relationship with a link table as following (full code in attachement) @Entity public class User { @Id private String code; @OneToMany(mappedBy = "user") @MapKey private Map | |
JPA query of a Set of terms Hi, Is it possible to write a JPA query to select objects that contain a collection of elements? For example, suppose I have a table that maps a search terms to pages: @Entity public class SearchIndex { @Index SearchTerm term; @Index Page page; } Now suppose I have an array of SearchTerm objects | |
Feature Request: Improved ObjectDB Explorer for the tables and trees look again, very old. A beautiful GUI boosts productivity! :) Posting | |
@OrderColumn issue entity objects to underlying tables and therefore does not handle columns. However, you can use use | |
Best practise loading big data data access on a large 2 dimansional table . Internally we used a list entities which hold a list of table rows which is a list of embeddable entities holding the final (String) value together with just | |
Explorer bug ? Objects seem to be missing from database in Class view, but are present as references would have to switch to TABLE or SEQUENCE strategy instead of AUTO to get an ID ensured after just persist ... , but it seems that switching to SEQUENCE or TABLE would provide better performance than flush after every persist . support Support | |
combined index not used more, but you could check in the Action table , typically we take an endDate that is 30 days from | |
com.objectdb.o.InternalException: null After an error in a @PrePersist method in an Entity class, the database stopped working. Fortunately this was in development, but still worrying! The Entity class @Entity @ Table (uniqueConstraints = { @UniqueConstraint(columnNames = "personalNumber")}) public class Customer | |
Unexpected exception (Error 990) on find of my entity look now like this: @Entity @ Table (schema="ebene1") public class MyEntity { protected static | |
InternalException during producer/consumer scenario Hi, I'm trying to use objectdb in a producer/consumer scenario. Producer threads put message objects into a table while consumer threads remove the objects based on age, priority, etc. There are 2 main motivations for using objectdb for this purpose rather than a queue or similar data structure: 1 | |
ObjectDB 2.8.4 tables ( issue #2600 ). Fixed a bug in using trailing '_' wildcard in LIKE queries ( issue | |
ObjectDB 2.2.2 bug in opening tables for selected rows. Fixed a replication configuration error . |