ObjectDB Database Search
51-100 of 200 resultsAuto Date for Creation and Update" is called. Is java.sql. Timestamp not supported? Any ideas are welcome :) kind Regard, Thomas /** * Date and time when book author has been created. */ @Temporal(TemporalType. TIMESTAMP ) private Timestamp ... void onPrePersist() { this.created = Timestamp .valueOf(LocalDateTime.now(ZoneOffset.UTC)); } tlehmann | |
General Performance Issues Illustrated with a Specific Method createdBy; @Temporal(javax.persistence.TemporalType. TIMESTAMP ) private Date createdAt; @Temporal(javax ... (javax.persistence.TemporalType. TIMESTAMP ) private Date lastEditeAt; /* Retire Reversal Properties ... .TemporalType. TIMESTAMP ) private Date retiredReversedAt; /* Retire Properties */ private boolean | |
Calendar in Criteria Querys with no date. java.sql. Timestamp - representing both data and time. If possible, you should use these types ... java.util.List; import java.sql. Timestamp ; import javax.persistence.*; import javax.persistence ... ; ParameterExpression p = cb.parameter( Timestamp .class);   | |
Setting temp directory location in ObjectDB, I see that the parent folder OS timestamp changes, i just want to read the file . Ideally the OS timestamp should not change for the parent folder when the odb file open for read ... .getPersistanceManager() line gets executed, the see the OS timestamp of the fodler changes | |
Finding an object by its datetime", btime, TemporalType. TIMESTAMP ); } @Entity public class Booking { @Temporal(TemporalType. TIMESTAMP ) Calendar btime; } I'm trying to search for the exact timestamp I persisted. This is a snippet ... . I want to search for objects by exact timestamps . takada Takumi Adachi It should work | |
Entity with java.util.Date column gives ClassCastException in BIRT.engine.odaconsumer.OdaDataException: Cannot get the timestamp value column: 3. org ... : java.util.Date cannot be cast to java.sql. Timestamp at org.eclipse.birt.data.engine.odaconsumer ... .lang.ClassCastException: java.util.Date cannot be cast to java.sql. Timestamp at com.objectdb.oda | |
query on calendar class; @Temporal(TemporalType. TIMESTAMP ) private Calendar start; I tested: Query query=em.createQuery ... Walezy ObjectDB does not currently support extracting a day of week from a date (methods for extracting ... a Calendar to a Date . Using Date or Timestamp as the field type instead of Calendar | |
LifeCycle Event with Embeddable classes = FetchType.EAGER) private List barList; @Temporal(TemporalType. TIMESTAMP ) private Timestamp modifyDate; @PrePersist @PreUpdate void onPreUpdate() { modifyDate = new Timestamp (System.currentTimeMillis()); }} @Embeddable public class Bar { @Temporal(TemporalType. TIMESTAMP ) private Timestamp modifyDate | |
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 ... ; private String periodType; @Temporal(TemporalType. TIMESTAMP ) public Calendar getBeginTime() { return ... (TemporalType. TIMESTAMP ) public Calendar getEndTime() { return endTime; } public void setEndTime | |
Database is locked when in use am using the JDO not JPA, and can you also please tell if i dont want the timestamp ... . support Support Thanks. How should i get rid of Timestamp directory ? I am going to use ... want all the odb files to be placed in "backup" directory not backup/[ timestamp ] directory | |
Query filter comparing Dates time only (e.g. 23:59:59 ). java.sql. Timestamp - represents date and time (e.g. 2019 ... time) when retrieved from the database. Timestamp is different, since it represents a point in time ... ) , but the parameter to the query is sent as java.util.Date , which by default is considered as a Timestamp | |
@Column( name = "columnName") doesn't work @GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp ; @ManyToOne @Column ... , timestamp , KEY_DESCRIPTOR, DATA_ITEMS, codedDataBlock, level but them still not correctly mapped and stays like member defined in class id, timestamp , keyDescriptor, dataItems, codedDataBlock, level I | |
objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation output for entity classes. - I have also used UNIX file timestamp checking to ensure enhancement from ... (and timestamp checking of enhanced .class files indicates that no "automatic" enhancement has taken place ... operations. I checked the timestamp of the enhanced entity classes, and they are time-stamped | |
Error 363 - Failed to read value of inverse relationship(TemporalType. TIMESTAMP ) private Date signUpDate = new Date(), signInDate; @Embedded @OneToOne private ... @GeneratedValue private Long id; @Temporal(TemporalType. TIMESTAMP ) private Date sendDate = new Date ... . TIMESTAMP ) // private Date sendDate = new Date(); // // private String | |
ObjectDB is opening too many sockets, and we are now facing following issue. Object DB server is creating too many sockets. Currently ... has currently in use. I guess it kind of work correctly as the sockets were not increasing ... general. You can limit the size of the connection pool (the default in ObjectDB is currently 50), by | |
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 | |
com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null; String url = ""; @Temporal(javax.persistence.TemporalType. TIMESTAMP )   ... . TIMESTAMP ) private Date modifiedTime; private @Index @Temporal(javax.persistence.TemporalType. TIMESTAMP ) Date postTime;   | |
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.localDate() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression localDate () Create expression to return current local date. Return: expression for current date 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.currentDate() - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression currentDate () Create expression to return current date. Return: expression for current date 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 | |
combined index not used the current date (in your case the date of the last Action). The endDate is created as soon as an Action ... :notNull])" eval="0.9675" variable="a" / = current -java.sql.Date)),(a.state=3)),(a.subType=3)),(a.type=0 ... ="[]" = current -java.sql.Date)),(a.state=3)),(a.subType=3)),(a.type=0)) v$1:bound(a.objectsInCharge | |
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 |