ObjectDB Database Search
101-150 of 200 resultsUserException: Package com.example.model is not found by the enhancer
and move the dist directory out of the project to a remote location and run it using java -jar example .jar then I get the exception: com.objectdb.o.UserException: Package com. example .model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com. example .model
|
|
Suggestion for improving the examples
and INDEXES were included. Frankly it is a huge wast those examples have not been provided. For example ... an employee Object but wait What does the table look like. Nope not in the example . Wait ... ; as in your example , I would what? Have to create getters and setters specific to a hierarchy
|
|
Concerning coding style of the example in the posting instructions
with reference to the coding example in the posting instructions and many of your other examples posted in the forums. While I appreciate the recommended coding style as shown makes for convenient minimal examples ... for entities, compliant entity classes belong in separate files. Secondly, in many forum posting examples
|
|
ObjectDB CRUD Examples
these manual pages . We do not have specific NetBeans examples in addition to the tutorials ... and Transactions? I'm finding these examples : http://www.objectdb.com/java/jpa/persistence/crud difficult as they don't really give a full example of what to do. This makes it difficult as
|
|
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
|
|
Groovy JPA example
Groovy JPA example
|
|
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
|
|
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 ();  
|
|
jakarta.persistence.CollectionTable
, the default values of the CollectionTable annotation elements apply. Example : @Embeddable public class
|
|
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
|
|
jakarta.persistence.criteria.Path.get(String)
to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root
|
|
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
|
|
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  
|
|
Database is erased after deploying a new web application version
; EntityManagerFactory when the web application is closed (see this example ). Usually EntityManager ... ; contextDestroyed method should be invoked. On that example the listener is defined in a web.xml file (added ... resource class in fact) according to the example in the provided link. On runtime, the call 
|
|
ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)
. One possible cause is a type being changed from a non-entity class (for example , an enum, or a class ... are described in the manual, for example , the server must be restarted after any schema change. If possible ... were involved—for example , moving an entity class to a different package—the situation
|
|
Does ObjectDB create one instance of each entity class on (web app) load ?
name. For example , if the abstract entity class is com. example .Common then there is exactly one instance in memory of class objectd.com. example .Common webel Dr Darren Kelly This is correct
|
|
Missing Data on Retrieval (0, null values)
the resultlist without any Export-Function. A little Example : First try: List resultList1 = em ... . This could be done, for example , by accessing a persistent field directly (with no reflection) from ... classes in your specific project (if it is not very large) by changing your design. For example
|
|
Soft Reference Object Cache Recommendation
off other objects ("retaining them") from being GC. (So, they, for example , do not hold strong references ... seems to continue growing well beyond the requested limit. For example , in my testing, I request ... that I can rely on? For example , if it may grow up to 5 times larger than I request, then I
|
|
Optimistic Locking
example demonstrates optimistic lock exception (it should work the same way also in JPA 2): package com.objectdb. example ; import java.util.*; import javax.jdo.*; import javax.jdo.annotations.*; public ... on the object that was retrieved from the database. For example , if you retrieve an object, copy its data
|
|
Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity
Logger Wrapper (otherwise not shown here, see that link for examples ). My LoggerWrapper offers ... ): [ObjectDB 2.6.3_04] Failed to process class file of type 'com. example .SubEntity' (error 422) com.objectdb.o.UserException: Failed to process class file of type 'com. example .SubEntity' at com.objectdb.o.MSG.d
|
|
ClassCastException on SELECT NEW ... after UPDATE over Java RMI
internally runs SELECT NEW ... queries. For example : SELECT NEW com.arunta.base.db.FileNameDTO(r.id ... and from remote clients via RMI after the update. For example SELECT COUNT(*) ..., or SELECT r FROM ... a matter of fact any update causes the problem. The above is just an example . Each of the DB files
|
|
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
|
|
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
|
|
NullPointer when accessing persistent field
I am afraid this is a large and complex example , and I do not encounter the problem in simple cases, therefore there is no example attached. I appreciate this may make the bug unreproduceable from ... of the entire example , which runs from the command line under maven ( I will have to send
|
|
Threaded Test - Failed to commit transaction: Unexpected internal exception
) This was using v2.2.7 The same test used to work in v2.2.0 I've attached the stripped down example ... Szurgot Also if I run the example code with fewer consumer (I just tried 2) it seems to just hang ... Richard Szurgot The following test case is based on your example (some changes were required to pass
|