ObjectDB Database Search
1-50 of 200 resultspersisting object with long[][] arrays of array Hi, I have an object I am trying to persist (java) - It has several fields of type long [][]. It is taking very long to persist and sometimes never finish - it hangs on getTransaction().commit ... ; private static final long serialVersionUID = 1L; public @Id String id;   | |
Schema migration - long to String Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors ... documentation? lwalkowski Lukasz Walkowski Changing a field from long to String should not require any | |
Lazy loading does not work - crud takes long; long t0 = System.currentTimeMillis(); projects ... ; private Long id; .. ..   | |
Repeated long Index Activation to find a way, how to diagnose both: why it is happening why it is taking so long thamal Tomas Hamal | |
EntityManager creation taking long time such long wait times? CAPdev CAP Dev There are no known issues that may be related. How do you know | |
EntityManager.refresh takes a long time EntityManager.refresh takes a long time for entity object Person in this code: logger.log(Level.INFO, "begin select for person " + new Date().toString()); TypedQuery personQuery =   | |
First persist takes long time: Could you explain the long time for first persist? btc_es BTC EmbeddedSystems Some operations | |
Explorer shows Long id, but should be Integer Hi! I have seen a strange behavior of ObjectDB Explorer: it shows @Id as being Long , not Integer as it's normally declared in the java class. This happens now with all entities in all 3 databases used for one project. If I open one of the entities in the explorer, then I click on it's id (in | |
JPA Primary Key cannot be modified and represents the entity for as long as it exists in the database. As an object database ... ( long ). The primary key of the first entity is 1, the second is 2, and so on. Primary key values ... value by declaring a primary key field: @Entity public class Project { @Id @GeneratedValue long id | |
Auto Generated Values ( strategy = GenerationType . AUTO ) long id; : } AUTO is the default strategy, so the following definition is equivalent: @Entity public class EntityWithAutoId2 { @Id @GeneratedValue long id ... ( strategy = GenerationType . IDENTITY ) long id; : } The IDENTITY strategy also generates an automatic | |
Running JPA Queries always returns a single result object, which is a Long object that represents the number of Country objects in the database: TypedQuery query = em. createQuery ( "SELECT COUNT(c) FROM Country c", Long .class); long ... is straightforward: Query query = em. createQuery ("SELECT COUNT(c) FROM Country c"); long countryCount = ( Long | |
Database Schema Evolution types are: byte , short , char , int , long , float , double , Byte , Short , Character , Integer , Long , Float , Double , BigInteger , BigDecimal , and enum values that are stored as numeric ordinal ... , as long as the elements are convertible (for example, from int[] to ArrayList ). From any object | |
JPA Metamodel API - including inherited: SingularAttribute id1 = entityType. getId ( Long .class); // Gets a single ID attribute - excluding inherited: SingularAttribute id2 = entityType. getDeclaredId ( Long .class ... ( Long .class); // Gets the version attribute - including inherited: SingularAttribute v2 = entityType | |
JPA Shared (L2) Entity Cache (MyEntity2.class, Long .valueOf(1), Collections. singletonMap( "jakarta.persistence.cache.retrieveMode ... (MyEntity2.class, Long .valueOf(1), Collections. singletonMap( "jakarta.persistence.cache.storeMode ... . contains (MyEntity.class, Long .valueOf(id)); You can remove cached entities from the cache by using | |
ObjectDB Object Database Features (for persistent fields) Primitive types (boolean, byte, short, char, int, long , float, double). Wrapper types (Boolean, Byte, Short, Character, Integer, Long , Float, Double). java.lang.String Date types ... Types Primitives (boolean, byte, short, char, int, long , float and double). Wrappers (Boolean, Byte | |
JPA Persistable Types data types are persistable: Primitive types: boolean , byte , short , char , int , long , float ... , Integer , Long , Float and Double . java.math.BigInteger , java.math.BigDecimal . java.lang.String . java ... `) and non-generic (for example, `ArrayList `) collection and map types are supported, as long as | |
Numbers in JPQL and Criteria Queries, if the operands are an int and a long , the MOD function returns a long . The SQRT function The SQRT ... byte , short , int , long , float , double , BigInteger , and BigDecimal . Unary Operators Creating | |
GROUP BY and HAVING clauses the five aggregate functions of SQL: COUNT : Returns a long value that represents the number ... , the second is a Long object for the number of countries in that group, and the third is the number ... methods for building aggregate expressions: count , countDistinct : Return a long -typed expression | |
JPA Entity Fields declared type, including a generic java.lang.Object , as long as the actual runtime value ... long version; } If a version field exists, ObjectDB automatically injects the version value into | |
Index Definition , long , float , double Equivalent wrapper classes from the java.lang package: Byte , Short , Character , Integer , Long , Float , Double java.math.BigInteger , java.math.BigDecimal java.lang.String java | |
Comparison in JPQL and Criteria API types: Any comparison operator can be used with primitive types ( byte , short , char , int , long , float , double ), their corresponding wrapper types ( Byte , Short , Character , Integer , Long | |
Database Management Settings long as the relevant data in the database is unchanged, cached results can be returned instead | |
FROM clause (JPQL / Criteria API) a simpler, long path expression (which is not an option for a collection). For example: SELECT c, c.capital | |
Retrieving JPA Entities long as the EntityManager is open. This includes fields that reference entities that have not | |
Privacy Policy. Retention of Your Personal Data The Company will retain Your Personal Data only for as long as | |
Literals in JPQL and Criteria Queries. The following are examples of valid numeric literals in JPQL: int : 100, -127, 0, 07777 long : 100L | |
jakarta.persistence.GenerationType . For a primary key of type Long , Integer , long , or int , the provider selects between TABLE , SEQUENCE ... for the entity using a database identity column. May be used to generate primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0 SEQUENCE Indicates that the persistence | |
jakarta.persistence.LockModeType , and PESSIMISTIC_FORCE_INCREMENT are used to immediately obtain long -term database locks. The semantics ... (Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods inherited from java.lang.constant.Constable | |
jakarta.persistence.PessimisticLockException(), hashCode(), notify(), notifyAll(), wait(), wait( long ), wait( long ,int), wait0( long ) | |
jakarta.persistence.PersistenceUnitTransactionType(), notifyAll(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods | |
jakarta.persistence.FlushModeType(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods inherited from | |
jakarta.persistence.InheritanceType(), notifyAll(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods | |
jakarta.persistence.LockTimeoutException(), getClass(), hashCode(), notify(), notifyAll(), wait(), wait( long ), wait( long ,int), wait0( long ) | |
jakarta.persistence.ConstraintMode(), notifyAll(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods | |
jakarta.persistence.DiscriminatorType(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), toString(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods inherited from java.lang.constant.Constable | |
jakarta.persistence.EntityNotFoundException(), notifyAll(), wait(), wait( long ), wait( long ,int), wait0( long ) | |
jakarta.persistence.EntityExistsException clone(), equals(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), wait(), wait( long ), wait( long ,int), wait0( long ) | |
jakarta.persistence.FetchType(), wait(), wait( long ), wait( long ,int), wait0( long ) Additional JDK methods inherited from java.lang | |
Step 2: Define a JPA Entity Class Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id ... Long getId() { return id; } public int getX() { return x; } public int getY() { return y; } @Override | |
Step 2: Define a JPA Entity Class static final long serialVersionUID = 1L; @Id @GeneratedValue private long id; private int x; private int y; public Point() { } Point(int x, int y) { this.x = x; this.y = y; } public Long getId | |
Step 2: Entity Class and Persistence Unit static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private | |
Step 2: Entity Class and Persistence Unit final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String | |
Step 2: Entity Class and Persistence Unit { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id | |
Step 2: Entity Class and Persistence Unit final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String | |
Step 2: Define a JPA Entity Class static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private | |
Step 2: Define a JPA Entity Class implements Serializable { private static final long serialVersionUID = 1L; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private Date signingDate; // Constructors: public | |
Step 4: Add a Servlet Class GuestServlet extends HttpServlet { private static final long serialVersionUID = 1L; @Override | |
Step 4: Add a Servlet Class GuestServlet extends HttpServlet { private static final long serialVersionUID = 1L; // Injected DAO EJB | |
Step 4: Add a Servlet Class long serialVersionUID = 1L; // Injected DAO EJB: @EJB GuestDao guestDao; @Override protected void | |
Step 4: Add a Servlet Class final long serialVersionUID = 1L; @Override protected void doGet( HttpServletRequest request |