About INSERT INTO

forum_thread

Source not found error after downloading ObjectDB 2.3.7_04

Code snippet: Properties prop = new Properties(); prop.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); prop.setProperty("javax.jdo.option.ConnectionUR","local.odb"); PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(prop); PersistenceManager pm = pmf.getPersistenceManager();   I am getting an error Source attachment does not contain source for File PMF.class. ... execute the line with Step Over (F6) rather than with Step Into (F5). ObjectDB Support ObjectDB - Fast ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Replication issue, Replayer failing due to NullPointerException.

I'm getting replication errors and upon trying to play the replayer I get a NullPointerException which i'm also seeing in the slave logs when it's trying to replicate... ... to fix this by copying the contents of $replication into the directory above it(the "data path"), this seems like a bug. I ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

UserException - Object User#2 belongs to another EntityManager

Hi! Scenario's steps: 1. User goes to his profile, a JSF page. 2. @RequestScoped CDI bean UserDataB loads the current user of the session at each request, by using @Stateless bean UserC#findUserById(Long id) 3. JSF page's @RequestScoped CDI bean AnotherB loads trades of that user, by using @Stateless bean TradesC#findTradeByClient(User u). ### UserC and TradesC have their own @PersistenceContext EntityManager with the same unitName. ... a problem if, in the same transaction, an entity is passed into more EntityManagers, but here are 2 different transactions. ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Problem with distinct select, order by and equivalent alias/attribute path

Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order by expression is different (though logically equivalent) to the projection expression. Here is the example: ... with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

enumeration table? how to on pure jpa?

Hello , I've relational db , and there is some table named enumerations with , some key and values.We will migrate to objectdb. Our problem is , we want to store some keys and values for global application configs. Like; tablename : enumeration table rows: key                value ... count increase much. It would be good to natively add into ObjectDB like me shown on top.That helps us utilizing autocomplete from ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

ORDER BY problem, when String starts with language specific character

Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts with "normal/english" character, records are ordered correctly. But when it starts with language specific character like 'Č', these records are placed after records with normal charaters. So records with 'Č' are after 'Z', but this is not correct, because 'Č' is between 'C' and 'D'. ... I've tried to add the normalizer expression into order by clause, but it thorws this exception: ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then insert the text in the new created block. Avoid overflow of ...

 
forum_thread

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code shows these two classes.... a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - select a style in the toolbar and then insert the text in the new created block. Avoid overflow of ...

 
issue

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... are right, sorry. Somehow the fix has not been integrated into that build. Please try build 2.6.1. ObjectDB ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

Problem with Criteria Querys

Hi, i am having problems running following code...   ... with p2 that was defined and set but was not integrated into the query (next build will avoid a NPE in this case). ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...

 
forum_thread

JPA - ExceptionInInitializerError when creating EntityManager

EntityFactoryManager(emf) is successfully received but error at emf.createEntityManager Please see my code of fragment from my project. public class Main {        final private static Properties EMAIL_PROPS;      final private static String EMAIL_FROM;            static {  EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("tmpCLMSPU"); ... Create a separate project & copy my original sources into it. I did the all configuration part of my project again i.e. adding ... (e.g. for using a browser spell checker). To insert formatted lines (e.g. Java code , stack trace ) - ...