Internal Website Search

101-150 of 200 results

Dependency from enhanced classes to the objectDB library

as OSGi component. But then the persistence unit is not found (defined in persistence. xml ... .impl.ModelElementImpl is not enhanced” Exception. 3) Run the enhanced –map. xml , of project com.btc.ep ... OSGi component. But then the persistence unit is not found (defined in persistence. xml

Configure ObjectDB in spring context

is to configure entire ObjectDB (optionally objectdb.conf too) in springs context. xml file so that I'd ... creating persistance. xml file. My previous database. xml (which is included in application-context. xml ... ") } ) @ImportResource({ "classpath:currencies. xml ", "classpath:market-types. xml ", "classpath:exchanges. xml

ObjectDB without javax.persistence

we get a “com.objectdb.o._PersistenceException:” with the message “Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence. xml ”   Caused by: com.objectdb.o._PersistenceException: Failed to validate xml file bundleresource://134.fwk2011579990:2/META-INF/persistence. xml

EntityManager getMetamodel() causes crash

also with a new empty database? support Support Working code.  Note I am using a persistence. xml ... toString() { return name; } } The persistence XML : : com.objectdb.jpa.Provider test.MyEntity Nota Bene:  Getting the entity list works if I do not use a persistence XML .  The code works as

ObjectDB within a resource adapter module and Java EE Connector Architecture

turn leverage the persistence. xml , which is automatically used via: @PersistenceContext private EntityManager em; The 2 web apps end up using the same persistence. xml , and thus the same ObjectDB ... that: 'JPA requires the definition of a persistence unit in an XML file in order to be able to generate

Spring Data JPA - PersistenceException thrown

.NullPointerException at javax. xml .validation.SchemaFactory.newSchema(SchemaFactory.java:670) at com.objectdb.o.XMD.n ... failed; nested exception is com.objectdb.o._PersistenceException: Failed to validate xml file / /META-INF/orm-objectdb. xml : at org.springframework.beans.factory.support

using DbUnit with ObjectDb

testing and / or loading test data to objectDb from xml files?   freddieFishCake Jonathan Lister ... code. It shouldn't be difficult to add to ObjectDB basic support of loading data from XML . Can you provide a sample object model and XML file in the format of your existing XML data

Problems using Maven Repo

I've worked around this by downloading "manually" but I don't seem to be able to resolve objectdb Maven dependency automatically - have the relevant repository entry etc. in my POM , Maven doesn't seem to be able to find anything. Wondering if there are some operational problems or if I

Problem with entities detection

Hi! I have some problems with ObjectDB. I need to have a persistence. xml with 2 persistence units ... is that ObjectDB seems to be ignoring the class fields on the persistence. xml file. Entities need to be in ... .persistence.TemporalType; import javax. xml .bind.annotation.XmlRootElement; import javax. xml .bind

mapping file is not being loaded

.   here is my persistence. xml             ... ;          mil/navy/navo/arf/config/orm. xml     ... ;          The entities are mapped in the ORM. xml file correctly, as

Too many persistable types (>10) - exceeds evaluation limit

have to persistence units? Here is my persistence. xml : com.objectdb.jdo.Provider de.itemis ... with other technologies using  persistence. xml as well, these file were somehow read in as well (even if they were in ... only with objectdb it seems to work. Is it possible to specify the persistence. xml explicity, preventing

Connect to objectdb database

Jakarta. My persistance. xml file looks like this: xmlns = "https://jakarta.ee/ xml /ns/persistence" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation = "https://jakarta.ee/ xml /ns/persistence https://jakarta.ee/ xml /ns/persistence/persistence_3_0.xsd" version = "3.0" name

Exception while accessing the Persistence unit ...?

the persistence. xml file has an error or maybe it is located in the wrong directory ... over the turorial few times. Here is my persistence. xml and attached please find the eclipse project layout: (Note ... . Arumainayagam There are 2 problems with your persistence. xml file: It has a wrong name

How force always recreate database on redeployment.

. Is there a system property, persistence. xml property, or config file property I can use to set ... container and persistence. xml in client-server mode ? webel Dr Darren Kelly Also at http://www ... application container and persistence. xml in client-server mode ? You may add the drop parameter

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

. xml and spring context xml is pretty much the same as in the spring mvc jpa example. i'm i doing ... LocalContainerEntityManagerFactoryBean and everything looks fine, the persistence. xml file is parsed and objectdb set as provider. i also added my entity class name in a element of the persistence. xml , which didn't help

JDO support vs JPA

to 2. However I found that there is no complete description or guide how the XML metadata should look ... (to which XML element is the given annotation equivalent). So my questions to this are: 1. Is there some description of XML metadata for ObjectDB ver2 using JDO which I did not find? 2. Is the combined

The server cannot start in CentOS

: Failed to validate xml file /opt/objectdb-2.2.5/objectdb.conf line 41: cvc-datatype-valid.1.2.1: '10.63 ... :66) Caused by: org. xml .sax.SAXParseException: cvc-datatype-valid.1.2.1: '10.63.0.0-10.63.0.255,127.0 ... get: com.objectdb.o.UserException: Failed to validate xml file E:\projects\jpaBench\jpa\ObjectDB

Is persistence version 2.1 supported?

Using the current version of persistence. xml leads to an error: com.objectdb.jpa.Provider org. xml ... .validate(ValidatorImpl.java:116) at javax. xml .validation.Validator.validate(Validator.java:124 ... for persistence. xml  was added in build 2.5.7_05. The url to java.sun.com doesn't exist, so the correct

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

to change my web. xml servlet mapping in web. xml ? I've been experimenting with and nothing seems to work. Thanks Siegfried Here is my web. xml fragment:     spring       ... .springframework.web.bind.annotation.RequestMethod.GET,    headers = {"Accept=text/ xml

Replication error - parsing objectdb config

.objectdb.o.UserException: Failed to validate xml file T:\felix_grid_services\ext\objectdb\2-2-1 ... ) ... 96 more Caused by: org. xml .sax.SAXParseException: cvc-complex-type.4: Attribute 'username ... .ValidatorImpl.validate(ValidatorImpl.java:159) at javax. xml .validation.Validator.validate(Validator.java:82

is JDO field attribute "indexed" supported?

I prefer to use the package.jdo XML metadata rather than annotations, but you don't ... that it corresponds to the XML element which is one way to specify indexes in XML metadata ... whether objectdb supports this? spiffy Jonathan Harley JDO XML metadata, although not documented in ObjectDB 2

OEM Enhancer causing Jenkins job to freeze

the Internet may happen during xml validation by the Java XML parser, if external XML schema is specified in XML files. Please try to generate a Java thread dump that will show where exactly the process

Pre-detach loading: retrieval by navigation not working in if statement

enhancement is that the later only enhances persistable classes My project's build. xml file Ant script ... files, rather than .class files, to the NetBeans cache, and side-steps any build. xml commands) I ... classes', I always use explicit accessors. I wrote:  My project's build. xml file Ant script

Mismatch client-server protocol prefix

Tomcat. In addition we converted our Spring configuration from xml to configuration classes ... have to use this workaround. I also had a look on an older revision with XML configuration. We haven't had the XML counterpart of @EnableSpringConfigured there. One thing is still happening. public

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

: loader (instance of ) previously initiated loading for a different type with name "org/ xml /sax ... .apache.logging.log4j.core.config. xml .XmlConfiguration.(XmlConfiguration.java:97) In the build. xml Ant

Eclipse4 RCP - No Persistence provider for EntityManager

with JPA included. I have another question regarding the persistence. xml . I put it in my /META-INF folder ... ) it may be because resources that are needed by  createEntityManagerFactory (e.g. persistence. xml ) are not ... and all works like a charm! Persistence. xml is now found and ClassLoader problems are gone... thats a suitable solution for now! paddy Patrick Gerhardt

EntityManager JPA or JDO impl and different behavior

Hi, I have an issue with the EntityManager. My persistance XML looks like: com.objectdb.jpa ... a basic test project, NO spring involved. Same persistance xml in my META-INF, startup using: emf ... the persistance. xml or is something in the spring is doing something I don't understand? Or have I missed

javax.persistence.PersistenceContext

of the persistence unit as defined in the persistence. xml file. If the unitName element is specified

javax.persistence.PersistenceContext.unitName

JPA Annotation Attribute in javax.persistence.PersistenceContext String unitName default "" (Optional) The name of the persistence unit as defined in the persistence. xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI must have the same name. Since: JPA 1.0

javax.persistence.Convert

JPA Annotation Convert Target: METHOD, FIELD, TYPE Implemented Interfaces: Annotation Specifies the conversion of a Basic field or property. It is not necessary to use the Basic annotation or corresponding XML element to specify the Basic type. The Convert annotation should not be used to specify

javax.persistence.MappedSuperclass

such subclasses by using the AttributeOverride and AssociationOverride annotations or corresponding XML

EntityGraph.getName() - JPA Method

JPA Method in javax.persistence.EntityGraph String getName () Return the name of a named EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor element, or added by means of the addNamedEntityGraph method. Returns null if the EntityGraph is not a named EntityGraph. Since: JPA 2.1

javax.persistence.EntityGraph

EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor

combined index not used

a specific required text in its XML representation:     query. setHint ("objectdb ... ;"ObjectNode[set]" element (included in the query plan XML representation).  In the case ... the list and the XML representation of the query plan (to help using the text hint). Query hints

javax.jdo.annotations.Column

JDO Annotation Column Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a column in the database. Corresponds to the xml element "column". Since: JDO 2.1 Public Annotation Attributes String allowsNull default "" Whether the column allows null values

javax.jdo.annotations.Cacheable

JDO Annotation Cacheable Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation to specify that this class/field/property is cacheable in a Level 2 cache. This corresponds to the xml attribute "cacheable" of the "class", "field" and "property

javax.jdo.annotations.Discriminator

JDO Annotation Discriminator Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the discriminator of the class. Corresponds to the xml element "discriminator" of the "inheritance" element. Since: JDO 2.1 Public Annotation Attributes String column default "" Name

javax.jdo.annotations.DatastoreIdentity

JDO Annotation DatastoreIdentity Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the datastore identity of the class. Corresponds to the xml element "datastore-identity" of the "class" element. Since: JDO 2.1 Public Annotation Attributes String column default "" Name

javax.jdo.FetchGroup

. This category includes members defined in the default fetch group in xml or annotations. Redefining

javax.jdo.FetchGroup.DEFAULT

JDO Static Field in javax.jdo.FetchGroup DEFAULT For use with addCategory and removeCategory calls. This category includes members defined in the default fetch group in xml or annotations. Redefining the default fetch group via the API does not affect the members defined by this category. Using

javax.jdo.annotations.Inheritance

JDO Annotation Inheritance Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the inheritance of the class. Corresponds to the xml element "inheritance" of the "class" and "interface" elements. Since: JDO 2.1 Public Annotation Attributes String customStrategy default

javax.jdo.annotations.Index

JDO Annotation Index Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database index. Used for database schema generation to create indexes. Corresponds to the xml element "index". Since: JDO 2.1 Public Annotation Attributes Column

javax.jdo.annotations.Join

JDO Annotation Join Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the join of a relation. Corresponds to the xml element "join". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column in the join

javax.jdo.annotations.FetchGroup

JDO Annotation FetchGroup Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the fetch group of a class. Corresponds to the xml element "fetch-group". Since: JDO 2.1 Public Annotation Attributes String[] fetchGroups default {} Fetch groups to be nested (included) in

javax.jdo.annotations.Extension

JDO Annotation Extension Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a JDO vendor extension. Corresponds to the xml element "extension". Since: JDO 2.1 Public Annotation Attributes String key default null The key

javax.jdo.annotations.ForeignKey

JDO Annotation ForeignKey Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database foreign-key. Corresponds to the xml element "foreign-key". Since: JDO 2.1 Public Annotation Attributes Column [] columns default {} Columns

javax.jdo.annotations.FetchPlan

JDO Annotation FetchPlan Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for the fetch plan of a persistence manager, query, or extent. Corresponds to the xml element "fetch-plan". Since: JDO 2.1 Public Annotation Attributes String[] fetchGroups default {} The fetch groups

javax.jdo.annotations.Element

JDO Annotation Element Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for the element of a collection/array relation. Corresponds to the xml element "element". Since: JDO 2.1 Public Annotation Attributes String column default "" Name of the column

javax.jdo.annotations.Embedded

JDO Annotation Embedded Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation to define that the object is embedded into the table of the owning object. Corresponds to the xml element "embedded". Since: JDO 2.1 Public Annotation Attributes Persistent

javax.jdo.annotations.Query

JDO Annotation Query Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a named query. Corresponds to the xml element "query". Since: JDO 2.1 Public Annotation Attributes Extension [] extensions default {} Vendor extensions. Since: JDO 2.1 String fetchPlan default