Internal Website Search

1-50 of 200 results

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API (JPA) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus ... standalone Object Database Management System (ODBMS) and not an ORM tool, so it is not intended and cannot be used to access other database management systems.

JPA Entity Fields

eagerly when the entity object is first accessed . Version Field ObjectDB maintains a version number ... and make their values accessible to your application by marking the version fields in your entity classes ... is enhanced (explained in chapter 5 ) or a version field is explicitly defined. Property Access

How to access database object to my application.

Hi, I want to access a object which contains some value like id,name,college and address ... . 1: GetterSetter method  2: Creating object for insert data  3: For Access data. Here object created and value inserted successfully but when i am trying to access that object it only access

multiple different applications access one odb file

Hi, is it possible to access one odb file from different applications? What we would like ... server you should be able to use ObjectDB in embedded mode to access the same database file (because there is only one process). If your applications run in separate processes and need to access

javax.persistence.Access

JPA Annotation Access Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to specify an access type to be applied to an entity class, mapped superclass, or embeddable class, or ... default null (Required) Specification of field- or property-based access . Since: JPA 2.0

Recommendation - concurrent access multiple class v

that it might get corrupted because the manual says that we must not access ObjectDB with different versions ... , then finally all of them get the new version? So...basically...concurrent access with version x ... with the new schema. ObjectDB servers usually do not have a direct access to your classes, so this is not

Multi-thread access to single EM's entities

to access a single EM's managed entities, as long as only the thread that created the EM interacts ... This is an interesting question. Apparently it should work fine if you access persistent fields only from ... themselves. Notice that enhancement of your classes will replace every access of a persistent field (outside

javax.persistence.Access.value

JPA Annotation Attribute in javax.persistence. Access AccessType value default null (Required) Specification of field- or property-based access . Since: JPA 2.0

Privacy Policy

For the purposes of this Privacy Policy: Account  means a unique account created for You to access ... that can access the Service such as a computer, a cellphone or a digital tablet. Personal Data ... visit and user actions during page views). Website  refers to ObjectDB Website, accessible from

Retrieving JPA Entity Objects

the database and the persistent fields are initialized, lazily, when the entity object is first accessed ... accessed . The getReference method is useful when a reference to an entity object is required but not ... the primary key is set but other persistent fields are uninitialized until the object fields are accessed

Server User List

The configuration element lists the users that are allowed to access the ObjectDB Server ... more subelements indicating which paths under the server data directory the user is allowed to access ... to access a directory always includes the permission to access the whole tree of subdirectories

JPA Class Enhancer

. There is one case, however, where enhancement is required. Non persistable classes that access directly (not ... (and actually required by JPA but not enforced by ObjectDB) to avoid accessing persistent fields ... the Java Enhancer Agent. Therefore, when using this technique persistent fields may only be accessed

Database Server

these databases accessible to client applications in other processes including ones on other remote ... are: The ability to access and use databases from different processes simultaneously. The ability to access ... , if an ObjectDB database is accessed directly only by a web application, it should be embedded in

Database Explorer

may be accessed using different paths in the tree and therefore may be represented by more than one node ... client server mode, it can be accessed simultaneously by other applications. If the database is modified ... for easier future access - first select it in a viewer window and then select the Tools Bookmark

JPA Lifecycle Events

should always return void and take no arguments. They can have any name and any access level ( public , protected ... methods and should not access any other entity objects. If a callback method throws an exception

Database Replication and Clustering

, the master database can be accessed  ordinarily as follows: EntityManagerFactory emf ... =a"); A slightly different URL is required in order to access the slave database: EntityManagerFactory emf

Working with JPA Entity Objects

, the existing managed entity object is returned without actually accessing the database (except retrieval by refresh , which always requires accessing the database). The main role of the persistence

General Settings and Logging

   ObjectDB manages a list of the recently accessed database URLs for use by the Explorer ... with URLs. Saving username and password with the URL makes accessing recently used databases in

ObjectDB Website - Terms and Conditions of Use

1. Terms By accessing and using this web site, you agree to be bound by these web site Terms and Conditions of Use, all applicable laws and regulations, and agree that you are responsible ... from using or accessing this site. The materials contained in this web site are protected by

JPA Primary Key

are deleted from the database. The primary key value of an entity can be accessed by declaring ... are stored continuously and can be collected by accessing a minimum number of database pages

SELECT clause (JPQL / Criteria API)

several other methods for accessing the result data. CriteriaBuilder's construct JPQL user defined

Server Configuration

its subdirectories can be accessed by the server. Appropriate file system permissions have to be set

JPA Persistable Types

. It can contain constructors, methods, fields and nested types with any access modifiers (public, protected

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases) is that in JPA data is represented by classes and objects rather than by tables and records as in

JPA Named Queries

a workaround, you may introduce classes to ObjectDB before accessing named queries, by using the JPA 2

ObjectDB License

databases are managed, but using ObjectDB on client machines merely to access remote ObjectDB

Is ObjectDB better than Object Relational Mapping (ORM)?

performance and use a JPA ORM provider (Hibernate, TopLink, EclipseLink or DataNucleus) to access relational

Database Connection using JPA

the EntityManager to access the database } finally { em. close (); } The EntityManager instance is obtained

Entity Management Settings

entity objects as hollow, and loading their persistent content lazily, when they are accessed

Paths and Types in JPQL and Criteria API

value. In Java, a NullPointerException is thrown on any attempt to access a field or a method via a null

SSL Configuration

when accessing remote ObjectDB databases over an insecure network such as the Internet. SSL Keystore

NullPointer when accessing entity field

) It is very strange that the problem occurs when accessing field of enhanced class but not during reading ... of this exception is unclear. It happened during an access operation that required reloading ... during the operation. This could happen when an object is accessed in one thread

NullPointer when accessing persistent field

you a snapshot of some of the utility dependencies )   The code being called is accessing a map declared ... on accessing an inverse collection in an entity that has been garbage collected. Build 2.3.2_01 fixes ... .RemoteTestRunner.main(RemoteTestRunner.java:197)   As before a Map structure was being accessed . @OneToMany

Lazy retrieval by access not working correctly

I have a problem loading lazy associations by access /navigation with an @Embedded attribute containing an @ElementCollection which is lazy loaded.  I'm not sure if the same problem exists ... if you view the map in the debugger, or if your application accesses keys and values in the map. support Support

java.lang.NullPointerException during access a field, only if the classes enhanced

We get the following exception during access a field (Set of entities) The error occurs only if the entities are enhanced.   Caused by: com.objectdb.o.InternalException: Unexpected internal ... . we found a 'workaround': we first access this Set of entites, before we do some other stuff. (Changed

[ODB1] Chapter 6 - Persistent Objects

which the application assigns object IDs to objects, is not supported by ObjectDB. Accessing the object ID ... on makePersistent( ... ) improves efficiency because the database only has to be accessed once, as ... . Chapter 7 is devoted to JDOQL queries. Retrieval by Access When an object is retrieved from

[ODB1] Chapter 8 - ObjectDB Server

can be accessed by multiple processes simultaneously. In addition, the server supports accessing ... all the database files that the server is allowed to access and manage. Please note: appropriate file ... directory of a web server. Every file in the data directory or in its subdirectories can be accessed by

[ODB1] Chapter 3 - Persistent Classes

(constructors, methods and fields) can have any access modifiers (i.e. public, protected, package or private ... Classes Classes that access or modify persistent fields are referred to as persistence aware classes ... the term 'persistence aware' refers to classes that are not persistent but contain code that accesses or

[ODB1] Chapter 5 - JDO Connections

, but to make your application JDO portable these objects are accessed through the standard JDO interfaces ... ). javax.jdo.option.ConnectionURL Specifies a database location. To access a database file directly ... client server mode should be used to access that database. To use embedded mode, an absolute path

[ODB1] Chapter 7 - JDOQL Queries

class. Usually this is used for accessing fields of the candidate object, but it can also be used ...  = 18" are also valid filter expressions. Field accessing is not limited to the this reference. Persistent fields of any entity that represents a persistent object can be accessed

[ODB1] Chapter 1 - About ObjectDB

(running on the same machine or on different machines) can safely access the database simultaneously ... . The database file is accessed directly by the application's process, using JDO and ObjectDB jar files ... , however, is useful for accessing remote databases and for database access of several processes simultaneously

Step 5: Add a JSP Page

name. The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window under Source Packages) and selecting New

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New Class

Step 5: Add a JSP Page

(to prevent direct access to the JSP bypassing Spring). Enter  guest as the jsp file name - use

[ODB1] Chapter 9 - ObjectDB Explorer

that the same database object might be accessed using different paths in the tree ... is open in the Explorer using client server mode, it can be accessed simultaneously by ... only when accessing a local database using embedded mode. 9.4  Tools and Threads The "Thread" tabbed

JDO Annotations for Classes

JDO supports two modes of persistable classes that can be set by the following annotations: Non persistable classes that should be enhanced (because of accessing persistent fields of other classes directly) can be marked with: The identity mode of persistence capable classes can be specified by using:

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API (JPA), which is designated to be used with relational databases, JDO is designated to be used

[ODB1] Chapter 4 - JDO Metadata

object is retrieved from the database its fields are not ready yet. Only when the program accesses