About Date

forum_thread

What role is the JDO in ObjectDB?

Mike Keith believe the JDO is out of date. Then what role of JDO in ObjectDB? Will our codes with JDO be out of date? <quot ... Mike Keith believe the JDO is out of date. Then what role of JDO in ObjectDB? Will our codes with JDO be out of date? Due in part to some of the failures of the EJB persistence ...

 
forum_thread

List of Enum Values in an entity

Hello, I'm new with ObjectDB and just tried out the example in the Eclipse/Glassfish tutorial (http://www.objectdb.com/tutorial/jpa/eclipse/ee). After testing was successful, I extended the Guest class with an ArrayList of Enums: private ArrayList<GuestFlag> flags; The flags are stored into the database without any problem. In the explorer I can see that it is stored as array of Strings. ... io . Serializable ; import java. sql . Date ; import java. util . ArrayList ;   import ... id ; private String name ; private Date signingDate ; private GuestFlag status ; private ...

 
release

2.2.7

Release date: 2011-06-14 Download (5.13 MB) Binary:  ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
manual

[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... in java.math (e.g. BigInteger ), and java.util.Date . Collections, arrays and references to user defined classes are excluded ... changes it in a way that every String or Date is stored as a non embedded object (with a unique object ID). The ...

 
release

2.2.6

Release date: 2011-06-02 Download (5.13 MB) Binary:  ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
forum_thread

can't get HashMap out of the database

I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is always empty when I get the entity out of the database again. I've reproduced this problem in a simple variation of the Guestbook tutorial: Guest class: ===================== ... id ; private String name ; private Date signingDate ; private HashMap<String, String> map = ... name ; this . signingDate = new Date ( System. currentTimeMillis ( ) ) ; ...

 
forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... TemporalType . TIMESTAMP ) private Date signUpDate = new Date ( ) , signInDate ;   @ Embedded ...

 
api-jdo

javax.jdo.PersistenceManager

PersistenceManager is the primary interface for JDO-aware application components.(Interface of JDO)

 
release

2.2.5

Release date: 2011-05-20 Download (5.1 MB) Binary:  ... 2.2.2 Changed log format to include date and time . Changed class loader management. ...

 
forum_thread

How to Use a SF with extended Persistence Context?

Hey, I have a problem to use SF with an Extended Persistence Context Regarding to Transactions. The need for an extended persistence Context emerges for the need to create queries in advance for fast execution so I need to store the queries and I need an EntityManager that doesn't get closed between calls. When I call the SF directly no problem happens but if I use SL to hold a reference to the SF I get com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active. ... will make it show each name only once with his last login date. The changes are as follows: The GuestDao is a SF with an ... for the guest in the DB. if it finds one it updater his date to the current date. if not, it stores a new one using the persist method ...