About main

181-190 of 200Refresh
Forum
1

Reading 1.x odb files in ObjectDB 2.x without upgrading

with no additional process: com.objectdb.Converter.main(new String[] {oldOdbFileName ... .Converter.main(new String[] {oldOdbFileName, newOdbFileName}); When i used through command prompt ... ; } } But when i do the coversion using the following code com.objectdb.Converter.main(new String
Forum
1

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

, however this has major consequences for my main web app development (broke it), because I ... worse) the annotated ones. I am now going to have to perform a substantial migration in my main web ... reflection objectdb-2.6.3_04.jar and it definitely used the old policy. The main point of this posting
Forum
1

Selective merge/cascade of detatched entity

for the interest. I've uploaded the source to the example, it just needs compiling. Main is the class ... altering the main function to be: public static void main(String[] args
Forum
1

Should I be able to persist a JFrame (or gui components in general)?

(under samples). 2. Specifically, I worked with the ContactEditor as main. I made a new class called ... (); } //more stuff etc................................... // main from JavaApplication1.java..................................... public static void main(String[] args) { emf
Forum
1

Strange behaviour with ORDER BY and IN

();     }     } This main class demonstrates the described behaviour: package de.solvit.objectdbtest; import ... .EntityManagerFactory; import javax.persistence.Persistence; public class Main {     private static ... ("2", "B"),         new Location("3", "C")     );         public static void main(String[] args
Issue
1

Strange Error with Criteria API and Sorting

main(String[] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory ... in thread "main" [ObjectDB 2.4.4_08] SELECT DISTINCT $1 FROM TestEntity $1 JOIN $1.other $2 ORDER ... .java:695) at Test_OrderBy.main(Test_OrderBy.java:45) Caused by: com.objectdb.o.UserException
Forum
1

The server cannot start in CentOS

.Server.main(Server.java:66) Caused by: org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: '10 ... "main" java.lang.ExceptionInInitializerError at fpg.TrieTree.(TrieTree.java:14) at src.run.Exec.(Exec.java:22) at src.run.Exec.main(Exec.java:375) Caused by: com.objectdb.o
Forum
1

using DbUnit with ObjectDb

().getAccessor().getConnection(), "PUBLIC"); but with objectDb this gives: Exception in thread "main ... and ObjectDB ;-)   Using JAXB is a nice idea and I am glad it works for you. But I think that the main limitation of this approach is that it is limited to small data sets that can fit into the main memory
Forum
1

Using the wrong class to access a database

; // imports public class Main { public static void main(String[] args) { run(); } static ... : Exception in thread "main" java.lang.ClassCastException The database is fine but the application tries
Forum
1

Weird behaviour with enhanced classes and embedded entities

.Persistence; public class Main {   @Entity   static class MyEntity {     @Id     int    id ... static void main(String[] args) {     // enhance entities     com.objectdb.Enhancer.enhance ... you can see there is my main entity (MyEntity) which contains a list of embedded entities (MyEmbeddedEntity