Internal Website 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. The following aggregate query always returns a single result object, which is a Long object ... COUNT(c) FROM Country c", Long .class); long countryCount = query. getSingleResult (); Notice ... query = em. createQuery ("SELECT COUNT(c) FROM Country c"); long countryCount = ( Long )query | |
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 , int , long , float and double . Equivalent wrapper classes from package java.lang: Boolean , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger , java.math.BigDecimal ... .g. ArrayList ) and non generic (e.g. ArrayList ) collection and map types are supported, as long as | |
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 from any machine as long as a valid username and password are provided. If authenticating  | |
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 | |
[ODB1] Chapter 7 - JDOQL Queries, 0, 0xFFFF, 07777 , ... long 2003L, -127L, 0L, 0xFFFFL, 07777L , ... float 3.14F, 0f, 1e2f, -2.f, 5 ... all six comparison operators. Numeric wrapper types ( Byte , Short , Character , Integer , Long , Float ... numeric types ( byte , short , char , int , long , float , double ). Logical Operators Logical | |
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 | |
[ODB1] Chapter 8 - ObjectDB Server long as only one user is involved, a simple configuration as demonstrated in the previous section ... and allow connections from any machine, as long as valid username and password are provided | |
[ODB1] Chapter 3 - Persistent Classes , int , long , float and double . Selected classes in package java.lang : Boolean , Byte , Short , Character , Integer , Long , Float , Double , Number and String . Selected classes in package java | |
[ODB1] Chapter 5 - JDO Connections, and is rolled back automatically. Optimistic transactions may be a good choice when long running transactions are required. This would avoid the excessively long object locking periods that datastore | |
[ODB1] Chapter 4 - JDO Metadata: embedded value types: primitive type ( boolean , byte , short , char , int , long , float or double ) embedded wrapper ( Boolean , Byte , Short , Character , Integer , Long , Float or Double ) embedded | |
[ODB1] Chapter 6 - Persistent Objects as long as the object exists in the database. If an object is deleted from the database, its unique | |
[ODB1] Chapter 1 - About ObjectDB edition and the free database edition in embedded mode as long as the database and the web server | |
javax.jdo.Query semicolons. Since: JDO 1.0 long deletePersistentAll () Deletes all the instances of the candidate class ... long deletePersistentAll (Map parameters) Deletes all the instances of the candidate class ... of the candidate class that were deleted See Also: deletePersistentAll () Since: JDO 2.0 long | |
javax.jdo.spi.StateManager of the field Return: the new value for the field Since: JDO 1.0 long getLongField (PersistenceCapable pc, int field, long currentValue) Return the value for the field. Parameters ... (PersistenceCapable pc, int field, long currentValue) The value of the field | |
javax.jdo.identity.LongIdentity; javax.jdo.identity.LongIdentity This class is for identity with a single long field. Since: JDO 1.0 ... (Class pcClass, Long key) Constructor with class and key. Parameters: pcClass ... pcClass, long key) Constructor with class and key. Parameters: pcClass - the class | |
javax.jdo.datastore.Sequence value is not available, throw JDODataStoreException. Return: the current value Since: JDO 2.0 long currentValue () Returns the current sequence value as a long . If the current sequence value is not ... is not available, throw JDODataStoreException. Return: the next value Since: JDO 2.0 long nextValue | |
Query.setRange(fromIncl,toExcl) - JDO Method JDO Method in javax.jdo.Query void setRange ( long fromIncl, long toExcl ) Set the range of results to return. The execution of the query is modified ... -based inclusive start index toExcl - 0-based exclusive end index, or {@link Long #MAX_VALUE} for no limit. Since: JDO 2.0 |