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;   | |
JPA Primary Key key cannot be modified. It represents the entity object as long as it exists in the database. As ... is a sequential 64 bit number ( long ) that is set automatically by ObjectDB for every new entity object ... a primary key field: @Entity public class Project { @Id @GeneratedValue long id; // still set | |
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; .. ..   | |
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 | |
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 ... = GenerationType . IDENTITY ) long id; : } The IDENTITY strategy also generates an automatic value | |
Running JPA Queries, which is a Long object reflecting the number of Country objects in the database: TypedQuery query = em. createQuery ( "SELECT COUNT(c) FROM Country c", Long .class); long countryCount = query. getSingleResult ... and the code is simple: Query query = em. createQuery ("SELECT COUNT(c) FROM Country c"); long countryCount | |
Database Schema Evolution type to any numeric type. In this context numeric types are: byte , short , char , int , long , float , double , Byte , Short , Character , Integer , Long , Float , Double , BigInteger , BigDecimal ... collection or array type, as long as the elements are convertible (e.g. from int[] to ArrayList | |
JPA Metamodel API: SingularAttribute id1 = entityType. getId ( Long .class); // Gets a single ID attribute - excluding inherited: SingularAttribute id2 = entityType. getDeclaredId ( Long .class); // Checks ... the version attribute - excluding inherited: SingularAttribute v1 = entityType. getVersion ( Long .class | |
Shared (L2) Entity Cache and primary key: em. find (MyEntity2.class, Long .valueOf(1), Collections ... operation. For example: em. find (MyEntity2.class, Long .valueOf(1), Collections. singletonMap ... = cache. contains (MyEntity.class, Long .valueOf(id)); Cached entity objects can be removed from the cache | |
ObjectDB Object Database Features System Types (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 ... . Primary Key Data Types Primitives (boolean, byte, short, char, int, long , float and double). Wrappers | |
JPA Persistable Types , byte , short , char , int , long , float and double . Equivalent wrapper classes from package java.lang: Boolean , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger ... and map types are supported, as long as their values (i.e. elements in collections and arrays and keys | |
Numbers in JPQL and Criteria Queries is used as with binary arithmetic operations in Java (e.g. for int and long operands the MOD function returns a long value). The SQRT Function The SQRT function returns the square root ... demonstrate only integer expressions, but all the numeric types ( byte , short , int , long , float | |
GROUP BY and HAVING clauses of SQL: COUNT - returns a long value representing the number of elements. SUM - returns the sum ... that letter's group as a Long object and the third cell contains the distinct number of currencies ... aggregate expressions: count , countDistinct - return a long type expression representing the number | |
JPA Entity Fields a generic java.lang.Object , as long as the type of the actual value at runtime is persistable (or null ... public class EntityWithVersionField { @Version long version; } If a version field exists, ObjectDB | |
Index Definition: Primitive types: boolean , byte , short , char , int , long , float , double. Equivalent wrapper classes from package java.lang: Byte , Short , Character , Integer , Long , Float , Double. java.math | |
Comparison in JPQL and Criteria API, including primitive types ( byte , short , char , int , long , float , double ), wrapper types ( Byte , Short , Character , Integer , Long , Float , Double ), BigInteger and BigDecimal can be compared | |
Database Management Settings. As long as the relevant data in the database is unchanged cached results can be returned instead | |
FROM clause (JPQL / Criteria API) long path expression (which is not an option for a collection). For example: SELECT c, c.capital.name | |
Retrieving JPA Entity Objects fields of an entity object can be accessed freely, regardless of the current fetch policy, as long as | |
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 ) are also supported. Following are examples of valid numeric literals in JPQL: int : 100, -127, 0, 07777 long | |
SSL Configuration connections from any machine as long as a valid username and password are provided | |
Persist error @ManyToMany how to define correct entities relationships too). @Entity public class Product implements Serializable { @Id @GeneratedValue private long id ... Category implements Serializable { @Id private long id; public Category(int id) { this.id = id ... implements Serializable { @Id //@GeneratedValue private long id; @ManyToMany(cascade=CascadeType.PERSIST | |
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 | |
EnumRef jakarta.persistence.GenerationType key of type Long , Integer, long , or int , the provider selects between TABLE , SEQUENCE ... identity column. May be used to generate primary keys of type Long , Integer, long , or int ... using a database sequence. May be used to generate primary keys of type Long , Integer, long , or int | |
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 | |
AnnotationRef jakarta.persistence.Version must be of one of the following basic types: int , Integer, short , Short, long , Long , java.sql.Timestamp | |
EnumConstRef jakarta.persistence.GenerationType.TABLE JPA Enum Constant in jakarta.persistence.GenerationType TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys of type Long , Integer, long , or int . Since: JPA 1.0 | |
EnumConstRef jakarta.persistence.GenerationType.AUTO JPA Enum Constant in jakarta.persistence.GenerationType AUTO Indicates that the persistence provider should pick an appropriate strategy for the particular database. For a primary key of type java.util.UUID or String, this is equivalent to UUID . For a primary key of type Long , Integer, long , or | |
EnumConstRef jakarta.persistence.GenerationType.IDENTITY JPA Enum Constant in jakarta.persistence.GenerationType IDENTITY Indicates that the persistence provider must assign primary keys for the entity using a database identity column. May be used to generate primary keys of type Long , Integer, long , or int . Since: JPA 1.0 | |
EnumConstRef jakarta.persistence.GenerationType.SEQUENCE JPA Enum Constant in jakarta.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence. May be used to generate primary keys of type Long , Integer, long , or int . Since: JPA 1.0 | |
EnumRef jakarta.persistence.LockModeType , and LockModeType.PESSIMISTIC_FORCE_INCREMENT are used to immediately obtain long -term database locks | |
Expression | |
InterfaceRef jakarta.persistence.EntityManager, modifications to its persistent fields and properties are automatically detected, as long as | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder an aggregate expression applying the sum operation to an Integer-valued expression, returning a Long result | |
InterfaceRef jakarta.persistence.criteria.Expression to Integer, Long , Float, and Double. Support for typecasts between other basic types is not required |