About SECOND

issue

Read only hint for query

Second thing after @FetchGroup I've found is read-only hint for EM. You can specify this hint to EM when executing query meaning that returned data will never be edited or persisted. My understanding of this is that each entity returned from query is in detached state as default state. query.setHint("odb.read-only", "true"); This could be useful in situation when you are sure, that you won't modify those entities - like listing entities, paging, logging, reporting. ... 2013-01-21 13:00 Second thing after @FetchGroup I've found is read-only hint for EM. You can ...

 
forum_thread

NULL prefered in ORDER BY?

Hi! Is there a way to NOT prefer NULL in Order BY? I.e. assume this: @Entity class Hint { private String name; } @Entity class Test { private Hint hint; } I've got a few Test entries, some do have a hint assigned, some do not (NULL). Now when I do something like SELECT FROM Test ORDER BY hint.name ... Test Entities whereas first one points to Hint{name=A}, second one to Hint{name=B} and third one to NULL: Test 3 ( with ...

 
forum_thread

Replication not working anymore

Hello! I upgraded my ODB Version to 2.5.4 to get rid of some bugs. Now i tried to start my replica server. It starts fine and then crashes after a few seconds with the following exception: #1 2014-01-10 15:39 Hello! I upgraded my ODB Version to 2.5.4 to get rid of some bugs. Now i tried to start my replica server ...

 
forum_thread

Debuging query before execution

Hi, Is is possible in any way to get string representation of a query right before execution, after setting parameters? Of course it's easy to print out query string when we build it by concatenating many strings, but even then we miss attributes. ... with the first line containing the query string, the second line containing the parameter arguments, etc. What do you ...

 
forum_thread

ObectDb 2.3.6 in OSGi environment

Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses ObjectDb and another bundle which includes the POJO models. Everytime I start in plugin evironement i get an PersistenceException, because my POJO not found. If try the same test in normal Java environment everthing works fine. Can you please advice? Thx Peter ... bundles, from the first bundle I'm trying to call the second bundle in following way with a JUnit Plugin test: ...

 
api-jpa

ge(x, y)

Create a predicate for testing whether the first argument is greater than or equal to the second.(Method of javax.persistence.criteria.CriteriaBuilder)

 
forum_thread

Unable to run NetBeans/JPA Web Application Tutorial

I followed each and every step of NetBeans/JPA Web Application Tutorial but when i am trying to the web application the following error is prompted on the run console: Start is in progress... start?path=/GuestBook FAIL - Application at context path /GuestBook could not be started C:\GuestBook\nbproject\build-impl.xml:1050: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 2 minutes 13 seconds)   #1 2014-04-26 17:53 I followed each and every step of NetBeans/JPA Web Application Tutorial but when i am trying to run the web appli ...

 
api-jdo

msg(messageKey, arg1, arg2)

Message formatter(Method of javax.jdo.spi.I18NHelper)

 
api-jdo

getConnectionFactory2()

Get the second data store connection factory.(Method of javax.jdo.PersistenceManagerFactory)

 
forum_thread

Problems with Tutorials » JPA Web App (Tomcat) » NetBeans JPA Web App

I made all the tutorial about the GuestBook but at the end, though it build correctly, when trying to run it, I got: C:\...\NetBeansProjects\JavaWebAppODB\nbproject\build-impl.xml:686: The module has not been deployed. BUILD FAILED (total time: 0 seconds) Can any body please help me with this error? It seems I've done everything correctly, but I still don´t know how to solve the problem, cheers, and thank you in advance,   Alan #1 2011-04-22 20:05 I made all the tutorial about the GuestBook but at the end, though it build correctly, when trying to run it, I g ...