ObjectDB Database Search

101-150 of 200 results

General Performance Issues Illustrated with a Specific Method

listPatientsByIDsWithBasicData(String ids) { Long st = new Date ().getTime(); System.out.println ... ); System.out.println("cs size = " + cs.size()); Long ed = new Date ().getTime(); System.out.println ... java.io.Serializable; import java.util. Date ; import javax.jdo.annotations.Index; import javax

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields . The object and its date and time fields are the same as in the referenced thread ... are using the 2015g time zone data. While we cannot see a problem with date only fields (more testing

query on calendar class

'}? The only solution is keep time and date i other fields and do that same wiht DAY_OF_WEEK? Solek Henryk Walezy ObjectDB does not currently support extracting a day of week from a date (methods for extracting other date parts are supported by ObjectDB as an extension to JPA), so you should consider

Trouble bug on explorer

.Serializable; import java.util. Date ; import java.util.List; /** * Created with IntelliJ IDEA. * User: apple * Date : 15.07.2012 * Time: 18:54 * To change this template use File | Settings | File Templates ... access; private int programType; private Date regDate; private Date regEnd; private String jxtaUUID

Composite Index error 328

.jdo.annotations.Indices; import javax.persistence.*; import java.io.Serializable; import java.sql. Date ... Integer mail; private int access; private short programType; private Date regDate; private Date regEnd; private Date lastLogin; private String lastIp; private int flags; private String name; private String

Schema update: package, class and field

one with the original name? Currently this works as we expected. Is it ensured that ObjectDB also in the future ... is that a coincidence?   Example: Version 1: class A { String date ; } Version 2: class A { String old_ date ; //renamed Date date ; } Schema: .. .. We expect following: version1: ( date ="21.07.2015" )  

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between ... ().toString();             final Date transTime = new Date (); // new Date (event.getSource().getTimestamp());       

Replication error on slave restart

that are currently offline. If a recording file is missing you will get the reported "Failed to synchronize ... opened master db with explorer [DATA PRESENT - AND UP TO DATE ] 3) I copied sm.db file to my PC ... [DATA PRESENT - BUT NOT UP TO DATE (more simular with slave)] So my answer for your question

TemporalType injection with Calendar using JPA

.TIMESTAMP When I use a java.util. Date as a field on this object there is no problem. However, if I ... .objectdb.o.OBC.aF(OBC.java:742)       longpat Brian O'Hare Calender is currently not one of the supported types for primary keys . JPA supports only java.sql. Date (or java.util. Date

virtual servers and one file

of this? Our only current workaround is to swap out older Entities entirely, but of course ... drop. ObjectDB 2.x does use RandomAccessFile . ObjectDB 3.0, which is currently under development ... to distant file areas. Maybe depending on the creation date ? best regards Arne        

Query performance in general

Hi ObjectDB team, we are currently investigating performance issues that affect some ... and date where id is indexed and date is not. Would it make sense to have "WHERE $1.id ... AND $1. date = ..." instead of "WHERE $. date = ... AND $1.id ..."? We saw that there is a special statement

How to Use a SF with extended Persistence Context?

for the guest in the DB. if it finds one it updater his date to the current date . if not, it stores a new ... it that will make it show each name only once with his last login date . The changes are as follows ... ; [org.jboss.as.security] (MSC service thread 1-9) JBAS013100: Current PicketBox version=4.0.7.Final

significant performance decrease

to around 30% when the number of entities was just half of the current ). We tried to optimize the cache settings, current objectdb.conf is: Now the question is, are there settings to change the caching ... = 1L; @Id public String uUid; public Integer associatedFileCurrentVersion; public Date

What role is the JDO in ObjectDB?

of JDO by ObjectDB is currently the most extended and up to date among all the JDO implementations ... Mike Keith believe the JDO is out of date . Then what role of JDO in ObjectDB? Will our codes with JDO be out of date ? Due in part to some of the failures of the EJB persistence model, and some

JSON serialization and __odbHidden members

;    " date ": "2015-10-30T17:25:55.359+03:00",        "ua ... ; {        "IP": "127.0.0.1",        " date ... .0.1",        " date ": "2015-10-30T17:25:55.359+03:00",   

Setting temp directory location in ObjectDB

operation only i.e. Date Modified time in the microsoft explorer window For example, parentfolder ... ;           Date Modiefied parentfolder   ... to the current time and a new temprory file is the created in the folder which I have specified

JPQL JOIN FETCH Error

publishers left join fetch metadata.contributors contributors left join fetch metadata. dates dates left ... metadata.contributors LEFT JOIN FETCH metadata. dates LEFT JOIN FETCH metadata.types LEFT JOIN FETCH ... there is currently only 1 Doi and no actual Metadata. Do let me know if you are able to get it working

openejb jpa jaas module

.*; /** * Created with IntelliJ IDEA. * User: apple * Date : 31.01.2013 * Time: 06:01 * To change this template ... : apple * Date : 02.02.2013 * Time: 23:15 * To change this template use File | Settings | File Templates ... with IntelliJ IDEA. * User: apple * Date : 27.01.2013 * Time: 02:30 * To change this template use File

First query takes 4+ minutes to complete

; // Annotated with @Version : private Short channelNumber; : private Date startDate; // Date : date part of startDateTime private Date startTime; // Time: time part of startDateTime : private String ... , r.toExtension) FROM RecordingMetaData AS r The expected result is 7 records ( date , extension

Explorer in 2.3

- and that is slow if you have millions of objects. Currently the workaround is to use queries ... expressions in the execution tab. Try the following query: SELECT 2 + 3. This is currently ... ("mypassword") is currently not supported. Please provide a list of additional expressions that you need

Improvement in replication

. So in current implementation when master node dies, there is only a chance to read data from slave ... up with current master. The main problem with solution is to choose master when both nodes are down and we start ... yet, and therefore, if the slave accepts write operations they may be based on a state, which is not the most up to date

Multi-tenant capability with hierarchies

from one application? The most up to date example of using ObjectDB with Spring Boot is posted ... to open multiple databases, but currently we don't have an example that does that. If you use ... to the post of kirshamir. I currently switch between databases using a Components getEnitityManager

Database Inconsistency or corruption

, and after loading the up to date data from the database (e.g. by using refresh) both sides will reflect the new ... to see all queries which are currently processed by ObjectDB. Like PostgresQL which has a view that shows all queries that the DB is currently executing. As an alternative, it would be nice

Failed to commit transaction: Attempt to reuse an existing primary key value (613)

I am using ObjectDB 2.8.3 version for my University Project which currently i am trying ... . @Test public void testONA() { try { SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); Date ... ", "Clark", "SmithClark", "ClarkSmith", "123456789", "jonsc@gmail.com", new Date (2001, 8, 1)); ev

@Convert is not supported?

Does objectdb jpa implementation support @Convert annotation? (convertion of property before persistance and vice versa) for example @Convert(converter = MyConverter.class) private Date date ;   ... an ORM feature, if it is found to be useful with ObjectDB. support Support I'll explain current

java.lang.NoClassDefFoundError: java/time/LocalDate

date and time types) you have to use Java 8 or above, rather than Java 7 that you are currently using. support Support ... ) { System.out.println(new Date ()); } gzdillon Lai Yang I removed the ObjectDB 2.8.6, and use

user defined backup target

Date /Time Information maybe: .. /Users/backup/mybackup.objectdb   2. What about the $odb File ? Does this file needs to be backed up? best regards Arne   Arne Arne Stocker Currently ... of the database file, and it would be located in a sub folder whose name reflects the date and time. Additional

Retrieve latest entry in a time-series

As mentioned elsewhere, subqueries are not currently supported.  A subquery is the way ... ;  jshaffstall Jay Shaffstall The easiest solution is to order the results by date in descending order:     SELECT FROM MyEntity e WHERE ... ORDER BY e. date DESC Then you can run

jakarta.persistence.EntityManagerFactory.runInTransaction(Consumer)

with the caller, then the EntityManager is associated with this current transaction. If the given function

jakarta.persistence.EntityTransaction.commit()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void commit() Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if EntityTransaction.isActive is false. RollbackException - if the commit fails. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityTransaction.rollback()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void rollback() Roll back the current resource transaction. Throws: IllegalStateException - if EntityTransaction.isActive is false. PersistenceException - if an unexpected error condition is encountered. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManagerFactory.callInTransaction(Function)

, then the EntityManager is associated with this current transaction. If the given function returns

jakarta.persistence.EntityTransaction.setRollbackOnly()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void setRollbackOnly() Mark the current resource transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. Throws: IllegalStateException - if EntityTransaction.isActive is false. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityTransaction.getRollbackOnly()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction boolean getRollbackOnly() Determine whether the current resource transaction has been marked for rollback. Returns: boolean indicating whether the transaction has been marked for rollback. Throws: IllegalStateException

jakarta.persistence.EntityManager.joinTransaction()

to associate it with the current JTA transaction. Throws: TransactionRequiredException

jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType)

with the current JTA transaction Returns: entity manager instance. Throws: IllegalStateException

jakarta.persistence.EntityManagerFactory.createEntityManager(SynchronizationType,Map)

- how and when the entity manager should be synchronized with the current JTA transaction map - properties

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

- if there is no transaction or if invoked on an entity manager which has not been joined to the current transaction. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityManager.refresh(Object,LockModeType)

on an extended entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.EntityManager.getFlushMode()

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager FlushModeType getFlushMode() Get the flush mode that applies to all objects contained in the persistence context. Returns: the current FlushModeType . Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.lock(Object,LockModeType)

to the current transaction. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

to the current transaction. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.EntityManager.contains(Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager boolean contains (    Object entity ) Determine if the given object is a managed entity instance belonging to the current persistence context. Parameters: entity - entity instance Returns: boolean value indicating

jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map)

on an extended entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.EntityManager.refresh(Object,RefreshOption...)

entity manager that has not been joined to the current transaction and any lock mode other than NONE was specified. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.EntityManager.getProperties()

of properties and hints currently in effect. Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.SynchronizationType.SYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SynchronizationType.UNSYNCHRONIZED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: Jakarta Persistence (JPA) 1.0

Using SELECT BETWEEN with LocalDate

Element e WHERE e. date between CURRENT _ DATE and : date " , Element. class ) .setParameter( " date " , date ) .getResultList() ; I get the following error for e. date in IntelliJ (Type mismatch: number, date ... I am trying to query all entities whose date is between today and today + X days. The date inside

ObjectDB 2 JDO Manual

that keeping two manuals up to date is a lot of work, but I would suggest that you a least make ... has hundreds of thousands of current users. Most of those users are probably now looking for a new ... manual would likely be a good one. JPA would not be of interest to most people currently using Object