ObjectDB Database Search
51-100 of 200 resultszip file or JAR manifest missing I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. Exception in ... more Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar | |
using objectdb.jar in writing data to mariadb or mysql db (for desktop version) and python or php for the web version but i want to code queries in native java ... to mariadb or mysql using native java JPA API and in some cases JPQL or must i store to an Objectdb unique ... . You cannot use to write to MySQL or MariaDB (as you cannot use PostgreSQL to write to MySQL). You can use | |
EntityManager JPA or JDO impl and different behavior the persistance.xml or is something in the spring is doing something I don't understand? Or have I missed ... " is called, the object is being lazy loaded. So if the "equals" or "hashcode" method use more than the database id for generation or comparison, it all fails horribly. Have a look at the output from | |
OR not working with isNull); Predicate ownerIsNull = cb.isNull(root.get("owner")); Predicate ownerMatchesOrIsNull = cb. or (ownerIsNull, isOwnedByUser); The isNull predicate will only match records when NOT inside the OR predicate. The other predicate works normally within or outside the OR . bhamilton Bruce Hamilton Your query | |
URGENCY, or in query does not report any objects on first operand having no results operand: select a from Action a where (a.state = 2 or a.state = 3) and a.type = 0 and a.transferred = 0 if the query is changed to select a from Action a where (a.state = 3 or a.state = 2) and a.type = 0 and a.transferred = 0 there are all the results for the condition a.state = 3 it seems that the or | |
@OneToOne query issue with OR and IS NULL A where another is null OR another.counter = 0 " What I expected to get where the 2 entities I ... : SELECT FROM A WHERE another IS NULL OR another.counter = 0 is a short form of the this equivalent query: SELECT a FROM A a JOIN a.another b WHERE a.another IS NULL OR b.counter = 0 You missed | |
Eager Fetch is not stable for collection or map types? Hi, thanks very much for your helpful software. The problem is the storage of collection or ... there is no known open bug that can cause this problem (including in using or not using generics ... is we confirm that the collection or map are stored successfully by using explorer tools when the JVM | |
Corrupted Database or error in ObjectDBExplorer?). Can you analyze the problem and tell us if its a problem of the explorer or a real problem in ... to open the Tree or Table Window for com.btc.ep.analysis.test.bl.internal.dmos ... ) available in the the classpath (either in the Explorer or using your application) in order to update | |
Database Inconsistency or corruption ObjectValue are just deleted from the database. If I had detailled traces of the EntityManager or ... IDs available on persist, or flush after persist to get IDs allocated. It is unclear ... relationship. If an update is not detected (e.g. due to 3 or 4) - you may try changing another (even dummy | |
Is there a function of "drop table" or "delete from table"? Besides the em.remove() one by one, is there a function of "drop table" or "delete from table ... MyEntity e").executeUpdate();” works, but it can not reset id to zero! "drop table" or "delete from table" or "truncate" can clear the id counting. Any idea? gzdillon Lai Yang Resetting generated ID | |
Should I be able to persist a JFrame (or gui components in general)?.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax ... ideas on the runtime error, or how I could reduce amount of code to map UI to a database to as ... somehow. This may exist, and I just don't get it, or whatever. And second, the idea of persisting interface | |
database more or less destroyed file was not closed correctly. Was it controlled exit or server process killed? Even if the process ... not copy the db file or do anything special, see attached the log after the restart (after server ... down. If you see errors in the storage device or the file system then the database file may develop | |
Is it ok to put list or map of embeddable objects in entity ? Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity ... part of the containing entity. Since there is no separate space allocation for the collection or its elements ... happening... Is that a bug or are cascade operations not supported with Embeddable classes ? kborkowski | |
Option or strategy to disable/skip runtime enhancement checks (to improve load time)? are redundant. Q: Is there an option or strategy to disable/skip runtime enhancement checks (to improve load time ) ? webel Dr Darren Kelly Please provide more information about these checks, such as log messages or stack traces. support Support | |
Cannot save or update entity on Spring App I've got this DAO in my Spring App import javax.transaction.Transactional; @Repository // or @Component @Transactional public class LanguageRepository { // Injected database connection ... (); return guest; } //DELETE or UPDATE command public boolean deleteOrUpdate(String query, Map map | |
Login Error (bad username 'admin' or password) I am getting following error when i am trying to connect to server: [com.objectdb.o._PersistenceException: Login Error (bad username 'admin' or password)] with root cause com.objectdb.o.UserException: Login Error (bad username 'admin' or password) at com.objectdb.o.MSG.d(MSG.java:61) at com | |
Waterfall tree algorithm for more optimized version of objectdb or hello , i heard its very good and new datastructure known as waterfall tree compared to btree. It could be good if you think and research some datastructure or take a look at waterfalltree Or it can be selectable by objectdb : here what i talk about : http://stsdb.com/stsdb-w4.0 | |
Annotations not supported in -source1.3 (use -source 5 or higher ..) and other files: Annotations not supported in -source1.3 (use -source 5 or higher ..) Generics not supported in -source1.3 (use -source 5 or higher ..) (Note that the version of Java I ran Maven as | |
jakarta.persistence.StoredProcedureQuery on an unexecuted stored procedure query before processing getResultList or getSingleResult . When executeUpdate ... back only via INOUT and OUT parameters as well as the most general case (multiple result sets and/ or update ... if the first result is a result set, and false if it is an update count or there are no results | |
JPA Criteria Query Expressions, representing any typed value, calculation, or path within the query. Extends Selection   ... WHERE and HAVING clauses. An enum defining the logical operators ( AND , OR ) used to combine multiple predicates. A navigation path to an attribute value or a referenced entity. A type-safe representation | |
Database Replication and Clustering database is managed on multiple computers, or nodes, which can be in different geographic locations ... cannot. You must enable recording , but no other preparations or settings are required. Setting slave ... master databases, slave databases (by using one or more elements), and databases that are not | |
SQL Queries Annotations the results of native SQL queries to entities or scalar values using these annotations: Defines how the result set of a native query maps to entities, scalar values, or constructor results. Groups ... to entity fields or scalar types with these detailed annotations: Maps a native query result to a specific | |
Posting Sample Code To demonstrate a technical question or an issue - you may have to provide a complete runnable sample program . If an unexpected exception (e.g. NullPointerException or ClassCastException ) is thrown ... warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or | |
Comparison in JPQL and Criteria API/SQL Set 2: Java/JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main ... Comparison operators always evaluate to TRUE , FALSE , or NULL . When neither operand is NULL (a case not shown in the table), the operator evaluates to either TRUE or FALSE . In this case, == is equivalent | |
JPA Relationships Annotations attributes (persistent fields or properties) in persistent classes that hold a reference or a collection ... which operations, such as PERSIST or REMOVE , propagate to associated entities. Determines whether related data is loaded immediately ( EAGER ) or on-demand ( LAZY ). Collection configuration Configure | |
jakarta.persistence.criteria.CriteriaBuilder. Parameters: restrictions - zero or more restriction predicates Returns: and predicate. Since: Jakarta ... restriction predicates. A conjunction of zero predicates is true. Parameters: restrictions - a list of zero or ... . Throws: IllegalArgumentException - if an argument is a tuple- or array-valued selection item | |
SELECT clause (JPQL / Criteria API) (for example, an entity class) or a lightweight "transfer" class that is used only for collecting ... "). get ("name")); is equivalent to using select with one of the factory methods ( array , tuple , or ... type (as set when CriteriaQuery is instantiated): If the expected result type is Object or Object | |
JPA Named Queries Annotations). It is defined on an entity or mapped superclass and assigned a unique name for retrieval ... , cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section of the ObjectDB Manual. Query references Access named queries in the application by name or by using | |
JPA Query Expressions (JPQL / Criteria) , such as SELECT , FROM , WHERE , GROUP BY , HAVING , and ORDER BY . Each clause is composed of JPQL or ... [OF] String operator : [NOT] LIKE Logical operators : AND , OR , and NOT JPA queries also support predefined ... , between , isNull , …) Logical expressions ( and , or , not , isTrue ) | |
JPA Fetch Plan Graphs as a template for a query or find operation, allowing you to override the default fetch strategies ... for defining fetch plans of related entities or embeddables. It enables fine-grained control over deep ... entity attribute to be fetched eagerly. AttributeNode instances are added to an EntityGraph or Subgraph to construct the complete fetch plan. | |
JPA Value Generation Annotations behavior using the following annotation and enumeration: Specifies that the property or field value ... generation: AUTO (default), IDENTITY , SEQUENCE , TABLE , or UUID . Generator definitions Define specific ... uniqueness. Use this generator when the underlying database doesn't support sequences or identity | |
What is ObjectDB? or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL. | |
JPA Metamodel and Graphs repository for all managed types within a persistence unit ( or an ObjectDB database). It provides methods to retrieve entity and attribute information by class or name, similar to the reflection API in Java ... : Describes Entity Graphs and Subgraphs. These structures act as "mini-models" or a focused view | |
JPA Shared (L2) Entity Cache value. Persistence Unit Settings You can also enable or disable the shared cache by using a persistence ... except those explicitly marked as @Cacheable . For example: @Cacheable // or @Cacheable(true) @Entity public class ... . This can be useful when other applications or other EntityManagerFactory instances might update | |
Online Backup copying or archiving the database file. This method only works when the database is offline, meaning it is not open in an ObjectDB server or in use by any application. ObjectDB also supports online ... that represents a local or remote connection to the database: em.createQuery("objectdb backup | |
ObjectDB Object Database Features Requirements Windows, Linux, Unix, Mac OS, and most other OS with Java support. Java 8 or higher Tested ... with some experience with Hibernate, TopLink, EclipseLink, OpenJPA, JPOX or DataNucleus could start ... ;field. Composite primary key - multiple @Id fields or a @EmbeddedId field. Primary Key Data | |
JPA Criteria API Queries getCriteriaBuilder method or the EntityManager 's getCriteriaBuilder method. In the example ... . This differs from string-based JPQL parameters , which use a name or position. Criteria query ... ( equal , notEqual , gt , ge , lt , le , between , isNull , ...) Logical expressions ( and , or , not | |
JPA Persistence Unit useful for microservices, dynamic environments, or applications where configuration is managed by ... can define one or more persistence units. As explained in the JPA Overview section, a persistence unit ... (to register a single class) or jar-file elements (to register all classes in a JAR file). ObjectDB does not | |
Server User List - 192.18.194.255 and from 127.0.0.1 . The admin attribute, with a value of true or false , specifies ... to connect to the database. The element Each element can contain one or more subelements that specify ... database files or modify anything. The element Each element can contain an optional subelement | |
ORDER BY clause (JPQL / Criteria API) a variable number of Order arguments ( or a List of Order instances) rather than Expression instances ... ) or descending ( DESC ). As shown in the example, the CriteriaBuilder interface provides asc and desc methods. These methods take an Expression and return an Order instance with an ascending or descending direction, respectively. | |
JPA Criteria FROM and JOIN for joining to a collection attribute (one-to-many or many-to-many associations). Represents a join ... for both, such the variable type. An enumeration defining the type of join to perform: INNER (default) or LEFT . JOIN ... over the attribute values. Unlike a standard join, these values cannot be used in the query results or in | |
jakarta.persistence.TypedQuery) explains how to use TypedQuery . Public Instance Methods int executeUpdate () Execute an update or delete statement. Inherited from Query Returns: the number of entities updated or deleted. Throws: IllegalStateException - if called for a Jakarta Persistence query language SELECT statement or for a criteria | |
jakarta.persistence.Query executeUpdate () Execute an update or delete statement. Returns: the number of entities updated or deleted ... statement or for a criteria query. PersistenceException - if the query execution exceeds the query timeout ... - if there is no transaction or the persistence context has not been joined to the transaction. QueryTimeoutException | |
jakarta.persistence.criteria.CriteriaQuery must be eliminated from the query result or whether they must be retained Returns: the modified query ... , or null if no restrictions have been specified. Inherited from AbstractQuery Returns: having clause ... getRestriction () Return the predicate that corresponds to the where clause restriction(s), or null | |
Logical "or" works not correcly when field is @Id and first position The following code doesn't respect the logical " or " correctly. Instead of returns all 2 datasets it returns only this one, which matches the first predicate in the or . BUT: this happens only, if the field for the " or " is the first one defined as @Id. public class OrTest {   | |
Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9()). ORS .Z9()" because " " is null at com.objectdb.o.MSG.a(MSG.java:77) at com.objectdb.jpa.EMImpl.commit ... :833) Caused by: java.lang.NullPointerException: Cannot invoke "com.objectdb.o. ORS .Z9 ... : (No such file or directory) at java.base/java.io.RandomAccessFile.open0(Native Method) at java.base | |
Eclipse/JPA Java EE Tutorial For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers. GlassFish Server 3.0.1 ( or above). The last version of ObjectDB (just download ... : ObjectDB 2.3.7_04 or later is required if Glassfish 3.1.2 ( or later) is used. The Tutorial Steps This tutorial consists of the following steps: | |
NetBeans/JPA Java EE Tutorial. Required Software For this tutorial you will need the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version of ObjectDB (just download and extract). The tutorial ... and menus might look slightly different but the code would be the same). Note: ObjectDB 2.3.7_04 or | |
Step 2: Entity Class and Persistence Unit) and selecting New Entity Class ... ( or New Other... Persistence Entity Class and clicking Next ). Enter ... clicking and selecting Edit or by double click and then moving to the Source or XML tab in | |
NetBeans/JPA Spring MVC Web Tutorial NetBeans - using JPA, ObjectDB, Tomcat ( or GlassFish) and Maven. The demo web application ... software: Java JDK 6.0 ( or above). NetBeans (Java or All bundle). The tutorial was written |