ObjectDB Database Search

151-200 of 200 results

ObjectDB and Spring Boot - sharing a simple working example

Following previous questions on the subject I'd like to share a simple working example of ObjectDB and Spring Boot. The code of the  example can be found here: https://github.com/kirshamir/spring-data-jpa-objectdb  The example uses the automatic query generation performed by

Guestbook example from tutorial does not work.

you for your quick reply. But thats a maven example . If i place the object-jee.jar to th /Web-inf/lib ... examples have been updated and tested successfully with TomEE 1.7.2 and ObjectDB 2.6.2_02. support Support

Suggest link to Maven example from Enhancer tool page

The maven plugin example here is incomplete:  https://www.objectdb.com/java/jpa/tool/enhancer#Maven_and_ANT_Enhancement_ Taken literally it can't work because it's missing this:     ... ; May I suggest you also link from there to the tutorial example :  https://www.objectdb.com

Example database world.odb

Hello! Where can I find classes for example database world.odb? Thanks for the answer.   Robin_2005 Kompan Serge The source code of the relevant entity classes is attached. support Support ... the relationships OneToMany and ManyToMany? I want to see a working example :-) Robin_2005 Kompan Serge

Examples of queries

Dear ObjectDB, Is there somewhere an example in Java that uses getResultList for a Group by query. Like: SELECT ProductID ,SUM(Quantity) FROM OrderDetails Group by ProductID;  Best Regards, Paul paulfo Paul Boon See this sections in the manual regarding SELECT queries that select multiple

Your Glassfish example on the web

Hi, I'm doing a school project with objectdb and glassfish. I have tried your web tutorial "Java EE JPA (Glassfish) with Netbeans". When I try to run the example and add an entry in the guestbook, it throws this exception: com.objectdb.o._PersistenceException: Attempt to obtain a connection from

JPA example is failing

I am running the server using this command: java -cp objectdb.jar com.objectdb.Server start console output: ObjectDB Server started on port 6136. I am using the example you have given for JPA . I am using maven project download. Creating connection using - EntityManagerFactory emf = Persistence

Groovy JPA example

Groovy JPA example

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

javax.jdo.JDOUserException Failed to locate field field exampleField using reflection (error 363)

to locate field field com. example .db.BDO.testField using reflection (error 363)     at java.base/java.lang.Thread.run(Thread.java:833) com. example .db_utils.jdo.exception.ConnectionException     at com. example .db_utils.jdo.BasicJDOConnection.persistenceManagerInit

Dependency from enhanced classes to the objectDB library

. We have create a “small” example based on our OSGi Bundle structure. The example contains 7 eclipse projects ... EmbeddedSystems Please provide step by step instructions on how to use this example to get the exception on #1 (or if the example demonstrates a different exception, please describe it in details). support

Extra uninitialised entities spawned on merge()

relationship Element owner - List ownedElements , and Example is a subclass entity with a relationship ... ;       Example e = new Example (root, " example ");     ... ; }     @Entity     static public class Example extends Element {  

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples

InternalError on multiple AND and JOIN Query

] ------------------------------------------------------------------------ [INFO] Building Example Objectdb ... ] Deleting directory /home/pedwards/CONTEXTSPACE_workarea/objectdb_ example /target [INFO ... _workarea/objectdb_ example /target/classes [INFO] [resources:testResources {execution: default

Update Entity references if we change the type of an entity

. As example (like in the attached example ): We have an EntityA that have a reference to an EntityB. But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic ... example to demonstrate the scenario is attached. btc_es BTC EmbeddedSystems The example contained

Problem with byte arrays in JDO - internal exception

; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve */ public class ... (); Query query = pm.newQuery( Example .class); query.deletePersistentAll(); pm.currentTransaction().commit(); pm.currentTransaction().begin(); Example example1 = new Example (); example1.setId(1); example1

Problem with byte arrays in JDO - ClassCastException

.PersistenceManagerFactory; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve ... ;    Query query = pm.newQuery( Example .class);         ... ;     Example example1 = new Example ();       

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

? See both examples . btc_es BTC EmbeddedSystems Correction. The case with strings as primary key ... and are processed faster. support Support Thank you for the clarification. The example with long keys needs round about 750 MB RAM memory. The example with string keys needs round about 1,5 GB RAM memory

Explorer in 2.3

to enter a Java expression into a field. For example , suppose you have a User entity with a password ... , on the other hand, is quite useful during development when I want to see examples of data, but I don't ... only interested in seeing an example of the data, rather than all of it.   For #5 - I was talking

DB reading fails in debug mode in Eclipse

of my. example .package.AnalyzeSettings using a no-arg constructor at com.objectdb.o.MSG.d(MSG.java:75) at com ... .__odbBeforeAccess(Unknown Source) at objectdb.java.util.HashMap.keySet(Unknown Source) at my. example ... to construct an instance of my. example .package.AnalyzeSettings using a no-arg constructor at com

General Performance Issues Illustrated with a Specific Method

in the future if you follow the posting instruction and post minimal examples (for example ... this thread now and start again with a clean thread and a minimal runnable example . See posting instructions and examples of other recent threads. Post again after isolating an issue to the minimum possible

EM close causes an exception

only one JVM with multiple threads. But in this scenario all works as expected. But now I have an example in the attachment. If you execute the example in parallel JVMs in Linux then one of the examples run into the issue. In Windows the example works fine. btc_es BTC EmbeddedSystems Tried this test case

How to use ObjectDB properly in spring boot application?

thread . If you cannot make it work please post your simple example with exact description of the issues ... from the original example (or another JAVA database): com.h2database h2 This is strange, as H2 will not ... ;    1.1      The attached file contains the original example adjusted to work

JBoss 7 startup fails

.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ ExampleDS ... tutorial   - the other web examples can be used on Tomcat, Jetty and GlassFish, but not on JBoss ... .subsystems.datasources] (MSC service thread 1-3) Bound data source [java:jboss/datasources/ ExampleDS ] 11

jakarta.persistence.MapKeyColumn.length

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int length (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Default: 255 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Convert.attributeName

Jakarta Persistence (JPA) Method in jakarta.persistence.Convert String attributeName A name or period-separated path identifying the converted attribute relative to the annotated program element. For example : if an entity class is annotated @Convert(attributeName = "startDate

jakarta.persistence.Column.length

Jakarta Persistence (JPA) Method in jakarta.persistence.Column int length (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Default: 255 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaQuery.select(Selection)

and the query result type is specified. For example : CriteriaQuery q = cb.createQuery(String.class); Root

Extended mapping-definitions

to a relational DB, for example with Hibernate.   By default every entity of the real world ... . A MetaClass is a simple Java class, which mimics it behavior, for example it has an attribute ... -attribute of MetaClass distinguishes the real-world-class. Example : cat in our wolrd - instance

EntityManager refresh problem

Hi, in the following code you can see an example with EntityManager.refresh(). The example ... there is no assertion error. I have tested the example with several objectdb versions (2.5.4, 2.5.6_05 and 2.5.7 ... -------------------- package example ; import java.io.File; import javax.persistence.EntityManager; import

OneToMany and cascade delete problem

with with two different classes with OneToMany relation to one, shared class. For example (first class ... ). You can see this in attached example . The question is - is it a bug? Or I shouldn't use that kind of relations ... . Anyway - I just modified example (attached to this post). After removing Product, Offer is still in

virtual servers and one file

how breaking a database into multiple files, for example one file per entity class, may help ... sometimes take 45 seconds until the entries in the calendar are displayed, for example . The software ... /article?legacyId=2088157 For example , are you using hardware or software RAID? Is the disk encrypted

Potential ObjectDB bug

.JpaQuery.getSingleResult(JpaQuery.java:757) [objectdb.jar:] at com. example .dao.TvrtkaDAO.getVlasnikAplikacije(TvrtkaDAO.java:57) [classes:] at com. example .clara1.Clara1UI.init(Clara1UI.java:152 ... .objectdb.jpa.JpaQuery.getSingleResult(JpaQuery.java:757) [objectdb.jar:] at com. example .dao.TvrtkaDAO

Composite indexes

; Let's start with some example then. Assume we have an entity that represents an interior design image ... the smallest subset of unique records (like for example "isPublished" which is either true or false ... .filterDescription AND i.isPublished = true ORDER BY i.lastModificationDate Basing on this example

Schema update: package, class and field

of moving a class and rename a field of the class doesn't works.   I had extended a example in which i already rename a field. Only rename the field  [ example works]   Only move the (embeddable) class [ example works too]   But the combination move and rename failed. All 'value

ObjectDB with JRebel: copious 'Not Enhanced:' errors with EJBs

enhancer.agent] Not Enhanced: com/ example /ejb/query/__EJB31_Generated__ExampleQuery__Intf__: com.objectdb.o.TEX: Type com. example .ejb.query.__EJB31_Generated__ExampleQuery__Intf__ is not found at com ... .ClassNotFoundException: com. example .ejb.query.__EJB31_Generated__ExampleQuery__Intf__ at java.lang.ClassLoader

Saving custom list which implements java.util.List fails

) and encountered the following problem:   I took the Point- example from the tutorial and added ... long as they are declared as java.util.List So the same example runs with db4o and Hibernate but not ... : ... For example , the Arrays.asList method returns an instance of an internal Java collection type

Searching lists within objects

example I'll never know the id, only what the attribute contains (ie Williams last name).   I'm ... . support Support Okay, I've follow suggestion one. Now I'm running some example queries.   ... the example . Please run the junit test. Its the test call queryAttribute5. Thanks. pedwards Paul Edwards

Fantom

about the problems that you found. support Support Here is the example I posted on the Fantom discussion board ... (Fan.java:336) dmoshal David Moshal An attempt to run this example using the Eclipse/F4 IDE ... fix anyways."     dmoshal David Moshal In that case, please package the example in

using DbUnit with ObjectDb

Are there any examples about how to use DbUnit with ObjectDB? DbUnit requires access to a jdbc ... is 'FlatXmlDataSet' which uses attributes for column names instead of elements, for example : .. second example ... of entities, for example if Unit is a JPA Entity class we need: @XmlRootElement public class Units { private

Multi-tenant capability with hierarchies

what would be the best way to implement this with objectDB? We are using spring boot, is there an example ... ;is there an example on how to access two different db files or how to distinct tenants in one file from one application? The most up to date example of using ObjectDB with Spring Boot is posted

A bidirectional OneToOne association with a shared primary key

;bidirectional @OneToOne association that has a shared primary key, example : http://fruzenshtein.com ... , and if so, could you provide or point me to a concrete code example that at least details ... - and for whichever is more efficient, could that be the example you provide ? Thanks  

Compile time enhancement using build.xml of a Netbeans web application

Does anybody have a complete, working example of the adaptations required in the build.xml ... do not see yet how to relate the manual's example above to these targets and to the various variables ... depth or adapt a build.xml for some years, and am not an expert with ANT. A complete example

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 ... / examples /guestbook-jee6.zip does not even deploy on JBOSS AS7 stack trace is: 09:40:30,202 INFO  [org ... ;   The example now runs but Guest still dont get persisted. No exception either. Some cache

Problem undeploying Glassfish3.1.1 web application cleanly

example (which also uses @PersistenceContext EntityManager injection)? support Support  Is it possible to get this exception with the simple tutorial GuestBook example (which also uses @PersistenceContext EntityManager injection)? Could not build GuestBook example from Maven, but I could create

combined index not used

can be embedded at the end of the query text in the format [[name=value]]. For example : SELECT ... there is a significant waiting time in the above functionality queries are significantly slow, example ... -Georg Zwicker just to make clear: all queries are slow, not only the above example hgzwicker Hans

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

and servlet + query example . The reason the relationships of the entities should load ... just point out something screamingly obvious. Your own JavaEE example has a single entity class ... am. Would you please demonstrate to me, either in my code or using a better example than Guest, the magic moment

version 2.4.5+ with GlassFish 3.1.2, errors when runs application. Version 2.4.4 worked but not 2.4.5 or later

) at luc. example .__EJB31_Generated__UserFacade__Intf____Bean__.getAll(Unknown Source) at sun.reflect ... .ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) at luc. example .UserFacade$Proxy$_$$_Weld$Proxy$.getAll(UserFacade$Proxy$_$$_Weld$Proxy$.java) at luc. example .UserController.getUserList(UserController.java

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

: model has Project as owner project.addOwnedElement(model); Element example = new Element(model, project, " example element"); example .setHelp("Note owner of this is a model Element"); model.addOwnedElement( example ); ...   EntityManager em = emf.createEntityManager(); format().out("Persist project

Removing of an entity removes also another entity type

. For example , the  EntityManager may not be aware that a cached entity object in its persistence ... to implement an example for this issue. btc_es BTC EmbeddedSystems It was not possible to implement an small example , since the issue occurs only in a big context. But we found the reason