About url

manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... closes the database file. Connection URL The createEntityManagerFactory ... As an extension, ObjectDB enables specifying a database url (or path) directly, bypassing the need for a persistence unit. Any string ... .objectdb is considered by ObjectDB to be a database url rather than as a persistence unit name. To use ObjectDB embedded ...

 
manual

Database Replication and Clustering

Replication enables maintaining up to date version of an ObjectDB database on multiple nodes.... "$objectdb/db-files" /> <replication url = "objectdb://localhost:6000/test.odb;user=a;password=a" /> </server > The  url  attribute of the <replication> element defines a master ...

 
manual

JPA Persistence Unit

Explains how to define a JPA persistence unit in the persistence.xml file.... <property name = "javax.persistence.jdbc.url" value = "objectdb://localhost/my.odb" /> ... JPA 2 defines standard properties for specifying database url, username and password, as demonstrated above. XML Mapping Metadata ...

 
manual

Server Configuration

Explains how to set a JPA/JDO database server using ObjectDB, the fast Java object database for JPA/JDO.... /> <!-- <replication url="objectdb://localhost/test.odb;user=admin;password=admin" /> --> ... is specified it also has to be specified by clients in the url connection string when connecting to the database (as explained in the ... connecting to the server the path that is specified in the url connection is resolved relative to the data path. For example, ...

 
forum_thread

Database connection url

I'd like to run a database called db1.odb on port 6136, and simultaneously open it in the explorer. I left the conf file set as: <server> <connection port="6136" max="100" /> <data path="$objectdb/db-files" /> </server> However, I'm not sure about the connection url for the code, and for the explorer. I tried this: Transactor.emf = Persistence.createEntityManagerFactory ("$objectdb/db1.odb");... However, I'm not sure about the connection url for the code, and for the explorer. I tried this: ... You have to fix the connection url. See: ...

 
forum_thread

Drop the entire database, Change the schema

I am trying to port and example app to ObjectDb. As part of the tests I drop the database and reload it with the new schema automatically between test cycles. Is there a simple way to do this with ObjectDb, or is the only way to delete the database file everytime? Thanks ... ObjectDB feature. Maybe adding ;drop as a url parameter: EntityManagerFactory emf = ... the normal stuff.   On the other hand the URL would work just as well for me and is in some senses clearer and more ...

 
forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... I see it exists a file name "urls2.xml". <url > <main > ... </alt > </url > This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. I have no control on ...

 
api-jpa

javax.persistence.spi.PersistenceUnitInfo

Interface implemented by the container and used by the persistence provider when creating an javax.persistence.EntityManagerFactory.(Interface of JPA)

 
forum_thread

Attempt to store an instance of a non persistable type java.net.URL

ObjectDB 2.3.6_16: The following works in EclipseLink+MySQL and EclipseLink+Oracle: ... public Link ( String name, String $url ) //throws MalformedURLException { this ... = name ; try { url = new URL ( $url ) ; } catch ...

 
issue

javax.persistence.PersistenceException Attempt to store an instance of a non persistable type java.net.URL

ObjectDB 2.3.6_16: The following works in EclipseLink+MySQL and EclipseLink+Oracle: ... public Link(String name, String $url) //throws MalformedURLException     { ... url = new URL($url);         } catch ...