gishac / db4o-om

Automatically exported from code.google.com/p/db4o-om
0 stars 0 forks source link

OM can't open database file created with db4o 7.12 #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create database file with db4o 7.12 for java
2. try to open db file with object manager
3.

What is the expected output? What do you see instead?
Either "null" in the command window, with a newly created DB, or
"Databasefile was created with a newer db4o version. Marshaller version:
10" when one has updated a OM-created test database file with new objects.

What version of the product are you using? db40 7.12, om 7.4 On what
operating system? Windows XP

Please provide any additional information below.
Contact me on adrian@javaguru.org if you need more info

Original issue reported on code.google.com by javahax...@gmail.com on 27 Jan 2010 at 3:51

GoogleCodeExporter commented 9 years ago
I have the same problem:
Win 7 32-bit
Db4o created and stored by java 1.5 appl. with db4o ebedded 7.12 driver jar.
I see some problem in using java enums in class definition:

public class User {
    private int userId;
    private String userName;
    private String userPass;
    private UserDb userDb;
    private boolean userEnabled;
...etc
}

public enum UserDb {
    INTERNAL
}

If I create a User object with a UserDb field defined, I see only a response 
"null" in a message window after an attempt for opening a db file.

If I create a User object without a UserDb field, the db file can be succesuly 
opened.

If I create a User object with a UserDb field defined, but with 7.4 db4o 
driver, the db file can be opened, but I cannot see any enum (ie DbType) 
objects - only a class definiotion. User objects are OK.

Jan

Original comment by jan.pat...@gmail.com on 10 Jun 2010 at 4:38

GoogleCodeExporter commented 9 years ago
I have the same problem...

Original comment by eibrahim on 28 Jul 2010 at 4:27