About persist

forum_thread

List always null

I have the following classes: @Entity public class Noticia implements Serializable {     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToOne(targetEntity = Categoria.class)     private List<Categoria> categorias;   ... "categorias" , cascade = CascadeType . PERSIST ) private List<Noticia> noticias ; ...

 
page

What is new in ObjectDB 2.0?

ObjectDB 2.0 supports many new features and improvements, including: Most of the features of the new JPA 2.0 and JDO 2.2 APIs. User defined IDs (primary key) and sequences. Support of unlimited index keys size. SQL like queries (" ...

 
forum_thread

Handling "is null" in where clause

Greetings, I was playing aroung with JPQL and have found that there is a problem with "is null" queries. When you use "is null" in where clause, query runs correctly, but results are incorrect. Let me show you an example: - entity @Entity public class EntityA { @Id Integer id; Integer simpleField; (getters and setters here) - populating database... ) ) ; } em. persist ( a ) ; }   // - selecting ...

 
api-jpa

getSingleResult()

Execute a SELECT query that returns a single untyped result.(Method of javax.persistence.Query)

 
api-jdo

isDirty(pc)

Tests whether the parameter instance is dirty.(Static Method of javax.jdo.JDOHelper)

 
api-jdo

Constants.ELEMENT_PROPERTY

The name of the persistence manager factory property elements in the JDO configuration file.(Static Field of javax.jdo.Constants)

 
api-jpa

javax.persistence.spi.ProviderUtil

Utility interface implemented by the persistence provider.(Interface of JPA)

 
api-jdo

postDelete(event)

Invoked whenever a persistent instance is deleted, for example during javax.jdo.PersistenceManager.deletePersistent.(Method of javax.jdo.listener.DeleteLifecycleListener)

 
api-jdo

getManagedObjects(states, classes)

Get the objects managed by this persistence manager having the specified object states and being instances of the specified classes.(Method of javax.jdo.PersistenceManager)

 
forum_thread

Global way to set Lazy-loading fetch functionality for all the fields

Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level (<cascade-persist always="auto" on-persist="false" on-commit="true" />) - Either at JPA global level (orm.xml).   For defining fetch policy, I know the local way to do it (@ManyToOne(fetch=FetchType.LAZY)). Is there any way to do it at objectdb level or JPA global level?   ... Hi, for cascading persist, I have 3 choices: - Either locally (@OneToOne(cascade=CascadeType.PERSIST)) - Either at objectdb level (<cascade-persist always="auto" on-persist="false" on-commit="true" />) - ...