About string

forum_thread

XML and ObjectDB

Hi All, I am new to ObjectDB and trying learn more about it. What is the typical way to persist XML into ObjectDB?  Do you need to generate JAXB JAVA bindings and then persist the generated JAVA bindings to ObjectDB? If this is one way, is there any alternative ways? Thanks, David ... You can also store an entire non parsed XML file as string or byte[] in one entity object. Every method has its pros ...

 
forum_thread

Index on values from a Map

Hi, is there a way to put an Index on the values from an Map? For example, if I have a Map like this: private Map<String, TemplateModel> mmsContainer and I want to access it fast in following way: Collection<TemplateModel> values = mmsContainer.values();   Thanks for you help   ... if I have a Map like this: private Map<String, TemplateModel> mmsContainer and I want to access it fast in ...

 
issue

500Mb ObjectDb database opening issue

Hi, I have observed that 500 Mb objectDb database opening time is very slow (~3 seconds) for following code m_EntityMgrFactory = Persistence.createEntityManagerFactory( "objectdb:" + aFilename ); m_EntityManager = m_EntityMgrFactory.createEntityManager(); Does exist any way to speed-up open time for big databases? Definitely, it's too long for 500 Mb database! ... ( ) ;   LOGGER. info ( String. format ( "took [%d] ms" , System. currentTimeMillis ...

 
forum_thread

Question about overriding default equals and hashcode

Hello Support, I have overrided equals and hashcode method in my entities beans. I don't know if you use these methods in your objectdb implementation. ( for comparing bean ? ) If yes, does it have an impact on performance of database ? Regards, Xirt   #1 2014-05-26 08:03 Hello Support, I have overrided equals and hashcode method in my entities beans. I don't know ...

 
api-jpa

javax.persistence.EntityManagerFactory

Interface used to interact with the entity manager factory for the persistence unit.(Interface of JPA)

 
api-jdo

copyKeyFieldsToObjectId(pcClass, fm, oid)

Copy fields from an outside source to the key fields in the ObjectId.(Method of javax.jdo.spi.JDOImplHelper)

 
api-jdo

javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier

This interface is used to provide fields to the Object id instance.(Interface of JDO)

 
api-jdo

jdoCopyKeyFieldsFromObjectId(fm, oid)

Copy fields to an outside consumer from the key fields in the ObjectId.(Method of javax.jdo.spi.PersistenceCapable)

 
forum_thread

InternalException & UserException using objectdb with Jboss AS 7.1.1 final

Hello. We are currently using ObjectDB in application server Jboss as 7.1.1.final. ObjectDB version is 2.5.3_02. The following errors occur when multiple ajax requests are executed: Caused by: com.objectdb.o.InternalException: Error reading UTF string Caused by: com.objectdb.o.UserException: Mismatch client-server protocol prefix Our current settings: Persistence.xml: ... by: com.objectdb.o.InternalException: Error reading UTF string Caused by: com.objectdb.o.UserException: Mismatch client-server ...

 
forum_thread

How to define database structure and insert some initial objects from scratch

Hi from Spain! We're evaluating ObjectDB and we have some questions: - How can we create the initial database structure of our application? We know objectdb is all about objects and probably not need initial structure like tables, but how can we populate some "tables" with initial data from a script? In SQL world we have scripts like "insert into..." - Can we use main objectdb.jar library as jdbc driver for ETL software like Kettle? How about migrating data from another database system? ... { public static void main ( String [ ] args ) {   // Open a ...