About array

forum_thread

@OneToMany(fetch = FetchType.LAZY) list is always null

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2EE. parent.getChildren() returns null. Here is a simple example: Bean: ... containing another one (OneToOne) entity with a byte[] array without calling the getter of the array of the child entity, the array becomes null. public class ...

 
forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: #1 2013-10-02 04:31 Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN : ...

 
release

2.4.1

... . Added support of using persistent array fields with parameterized type . Added error on using ...

 
release

2.4.2

... . Added support of using persistent array fields with parameterized type . Added error on using ...

 
release

2.5.5

... in loading mapped (inverse) to-many relationship into an array field ([]) ( issue #195 ). Fixed a bug in loading mapped ... . Added support of using persistent array fields with parameterized type . Added error on using ...

 
forum_thread

Strange behaviour with ORDER BY and IN

Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as it should be (and usually is, except in this special combination-case). #1 2016-01-10 08:00 Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performa ...

 
api-jpa

values()

Returns an array containing the constants of this enum type.(Static Method of javax.persistence.TemporalType)

 
forum_thread

"where in" query

Is it possible to run a query selecting values that exist in a provided list? e.g. something like: SELECT u FROM User m WHERE u.username IN ('test_user','anotheruser') I've tried various combinations of this including passing the list as a named parameter but without any joy. The only similar examples I can find in the docs involve a join query - but my list isn't in the database - and the MEMBER OF operator doesn't seem to do what I want (although I may be using it incorrectly! #1 2011-06-23 08:12 Is it possible to run a query selecting values that exist in a provided list? e.g. something like: SELEC ...

 
forum_thread

Dirty checking

Hi, wondering if anyone knows the best way to detect which objects have been changed in the database. ie: which objects, and which collections of objects, have been dirtied.     ... I need to: 1) set the config file to track array changes. 2) capture all entities changed during the transaction. ... another transaction. Note that you have to enable array change tracking only if you have Java arrays (e.g. int[], MyEntity[]), as ...

 
api-jdo

makeNontransactionalAll(pcs)

Make an array of instances non-transactional after commit.(Method of javax.jdo.PersistenceManager)