ObjectDB Database Search
101-150 of 200 resultsWrong 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" )   | |
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 | |
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());   | |
Performance question e.g. a date field you want to query for. Is there an improvement in performance if I create a "mirror" date field in the original entity, removing the need to traverse through the referenced other entity? So, querying for "all objects with object.otherobject. date 1.1.1980" is slower | |
EntityManager.getLockMode(entity) - JPA Method;entity ) Get the current plain held by this persistence context on the given managed entity instance. Parameters: entity - a managed entity instance Return: the lock mode currently held Throws ... been joined to the current transaction IllegalArgumentException - if a transaction is active but the given instance is not a managed entity Since: JPA 2.0 | |
ClassRef jakarta.persistence.criteria.LocalDateTimeField 3.2 Public Methods String toString () Since: JPA 3.2 Public Static Fields DATE The plain | |
AnnotationAttrRef jakarta.persistence.Temporal.value JPA Annotation Attribute in jakarta.persistence.Temporal TemporalType value default null The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 1.0 | |
CriteriaBuilder.least(x) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression least ( Expression x ) Create an aggregate expression for finding the least of the values (strings, dates , etc). Parameters: x - expression representing input value to least operation Return: least expression Since: JPA 2.0 | |
CriteriaBuilder.greatest(x) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression greatest ( Expression x ) Create an aggregate expression for finding the greatest of the values (strings, dates , etc). Parameters: x - expression representing input value to greatest operation Return: greatest expression Since: JPA 2.0 | |
AnnotationAttrRef jakarta.persistence.MapKeyTemporal.value JPA Annotation Attribute in jakarta.persistence.MapKeyTemporal TemporalType value default null (Required) The type used in mapping java.util. Date or java.util.Calendar . Since: JPA 2.0 | |
AnnotationRef jakarta.persistence.PersistenceContext whether the persistence context is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means | |
AnnotationAttrRef jakarta.persistence.PersistenceContext.synchronization is always automatically synchronized with the current transaction or whether the persistence context must be explicitly joined to the current transaction by means of the EntityManager.joinTransaction method. Since: JPA 2.1 | |
CriteriaBuilder.localDateTime() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDateTime () Create expression to return current local datetime. Return: expression for current timestamp Since: JPA 2.0 | |
CriteriaBuilder.localTime() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression localTime () Create expression to return current local time. Return: expression for current time Since: JPA 2.0 | |
ClassRef jakarta.persistence.spi.PersistenceProviderResolverHolder getPersistenceProviderResolver () Returns the current persistence provider resolver. Return: the current persistence | |
PersistenceProviderResolverHolder.getPersistenceProviderResolver() - JPA Static Method JPA Static Method in jakarta.persistence.spi.PersistenceProviderResolverHolder PersistenceProviderResolver getPersistenceProviderResolver () Returns the current persistence provider resolver. Return: the current persistence provider resolver Since: JPA 2.0 | |
CriteriaBuilder.currentTimestamp() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentTimestamp () Create expression to return current timestamp. Return: expression for current timestamp Since: JPA 2.0 | |
EntityManager.isJoinedToTransaction() - JPA Method JPA Method in jakarta.persistence.EntityManager boolean isJoinedToTransaction () Determine whether the entity manager is joined to the current transaction. Returns false if the entity manager is not joined to the current transaction or if no transaction is active. Return: boolean Since: JPA 2.1 | |
CriteriaBuilder.currentTime() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentTime () Create expression to return current time. Return: expression for current time Since: JPA 2.0 | |
ClassRef jakarta.persistence.EntityExistsException.persist is called and the entity already exists. The current transaction, if one is active ... may be thrown at flush or commit time. The current transaction, if one is active and the persistence context | |
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 | |
java 8 LocalDateTime is not working in query. date BETWEEN :startDate AND :endDate ORDER BY t. date "); query.setParameter("startDate", LocalDateTime ... but it's working fine: SELECT t FROM Test t Joe Joe Khan New Java 8 date /time types are not ... to translate a value, which is at least a workaround. But ObjectDB currently doesn't support | |
JPA 2.2 LocalDate still not working challenges with supporting all the Java 8 date and time fields. They are currently supported ... . Otherwise, on retrieval a Date instance may be instantiated. Currently selecting such a field in the query ... (e.g. for LocalDate, and not all the Java 8 date and time types) can be added soon. support Support | |
EntityTransaction.rollback() - JPA Method JPA Method in jakarta.persistence.EntityTransaction void rollback () Roll back the current resource transaction. Throws: IllegalStateException - if {@link #isActive()} is false PersistenceException - if an unexpected error condition is encountered Since: JPA 1.0 | |
EntityTransaction.commit() - JPA Method JPA Method in jakarta.persistence.EntityTransaction void commit () Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if {@link #isActive()} is false RollbackException - if the commit fails Since: JPA 1.0 | |
ClassRef jakarta.persistence.EntityNotFoundException the database. The current transaction, if one is active and the persistence context has been joined | |
ClassRef jakarta.persistence.LockTimeoutException part of an API call, at, flush or at commit time. The current transaction, if one is active | |
ClassRef jakarta.persistence.PessimisticLockException at commit time. The current transaction, if one is active, is marked for rollback. Since: JPA 2.0 Public | |
EnumConstRef jakarta.persistence.SynchronizationType.SYNCHRONIZED JPA Enum Constant in jakarta.persistence.SynchronizationType SYNCHRONIZED Persistence context is automatically synchronized with the current transaction Since: JPA 2.1 | |
EntityManagerFactory.createEntityManager(synchronizationType,map) - JPA Method should be synchronized with the current JTA transaction map - properties for entity manager Return | |
ClassRef jakarta.persistence.OptimisticLockException at commit time. The current transaction, if one is active, will be marked for rollback | |
EntityManagerFactory.createEntityManager(synchronizationType) - JPA Method. Parameters: synchronizationType - how and when the entity manager should be synchronized with the current | |
EnumConstRef jakarta.persistence.SynchronizationType.UNSYNCHRONIZED JPA Enum Constant in jakarta.persistence.SynchronizationType UNSYNCHRONIZED Persistence context must be explicitly joined to the current transaction Since: JPA 2.1 | |
ClassRef jakarta.persistence.NonUniqueResultException the current transaction, if one is active, to be marked for rollback. See Also: Query.getSingleResult | |
EntityManager.refresh(entity,options) - JPA Method been joined to the current transaction and any lock mode other than {@code NONE} was specified | |
InterfaceRef jakarta.persistence.Query. Return: query properties and hints Since: JPA 2.0 LockModeType getLockMode () Get the current lock | |
ClassRef jakarta.persistence.NoResultException and there is no result to return. This exception does not cause the current transaction | |
EntityManager.merge(entity) - JPA Method JPA Method in jakarta.persistence.EntityManager T merge ( T entity ) Merge the state of the given new or detached entity instance into the current persistence context, resulting in, respectively, an insert or possible update when the persistence context is synchronized | |
EntityManager.lock(entity,lockMode,options) - JPA Method on an entity manager which has not been joined to the current transaction EntityNotFoundException | |
InterfaceRef jakarta.persistence.TypedQuery and hints Inherited from: Query Since: JPA 2.0 LockModeType getLockMode () Get the current lock mode | |
ClassRef jakarta.persistence.PersistenceException , and QueryTimeoutException , cause the current transaction, if one is active and if the persistence context | |
EntityManager.find(entityClass,primaryKey,options) - JPA Method NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction | |
EntityManager.find(entityGraph,primaryKey,options) - JPA Method NONE} is specified or if invoked on an entity manager which has not been joined to the current transaction | |
Query.getLockMode() - JPA Method JPA Method in jakarta.persistence.Query LockModeType getLockMode () Get the current lock mode for the query. Returns null if a lock mode has not been set on the query object. Return: lock mode Throws: IllegalStateException - if the query is found not to be a Jakarta Persistence query language | |
ClassRef jakarta.persistence.QueryTimeoutException out and only the statement is rolled back. The current transaction, if one is active, will be not | |
EnumRef jakarta.persistence.FlushModeType to the current transaction, the persistence provider must not flush to the database. See Also: EntityManager |