About package

forum_thread

Custom collection types

Hi   In our project in few places there are used collections from emf framework eg EcoreEMap http://download.eclipse.org/modeling/emf/emf/javadoc/2.5.0/org/eclipse/emf/ecore/util/EcoreEMap.html This is strange map for me, it implements List interface but does not implement Map interface, nevertheless it causes some questions. ... i achieve this for collections which are not in java.util package? if this collection type will be used in first app release to ...

 
forum_thread

Spring and packagesToScan

Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting Type XXX is not found   ... are many jar files with entities under "com.myentities." package and subpackage edit ...

 
forum_thread

@ElementCollection of type enum

Hi! I have in an entity called User with the following field: @ElementCollection(fetch = FetchType.EAGER) private Set<UserPermission> permissions; package x.x.x.x public enum UserPermission { BASIC, COACH, ADMIN } Use case: there are users which contain the first 2 permissions (BASIC and COACH, so the first 2 entries). ... private Set<UserPermission> permissions; package x. x . x . x   public enum UserPermission ...

 
forum_thread

Bug: ClassCastException by retrieval

Hi, when a generic array put into ObjectDB, its type changed to Object[]! codes: ... its type changed to Object[]! codes: package test ;   import java. util . Arrays ;   ...

 
forum_thread

Annotations not supported in -source1.3 (use -source 5 or higher ..)

objectdb-2.2.5_03 Netbeans IDE6.9.1 java version "1.6.0_24": as user running Netbeans java version "1.5.0_28": as su running maven mvn Maven version: 2.0.8 Firstly, I followed the instructions to build the points example from Maven, but on opening it in Netbeans 6.9.1 I got an error in Points.java and other files: Annotations not supported in -source1.3 (use -source 5 or higher ..) Generics not supported in -source1.3 (use -source 5 or higher ..) ... basic Java Application in Netbeans and copied the points package over into it, and added the objectdb.jar library and it compiled and ...

 
forum_thread

Possible cause for "Enhancement of type ... is old and cannot be used"

We get the following log: ... "Type ...  is not enhanced". We didn't added the package com.btc.ep.requirement.bl.internal.* to the enhancer. But what ...

 
forum_thread

Problem with distinct select, order by and equivalent alias/attribute path

Hi, while working with a (standard-)JPA-query generating framework we run into an exception when ordering the results of some projection when the order by expression is different (though logically equivalent) to the projection expression. Here is the example: ... }   }   package de. solvit . objectdbtest ;   import de. solvit . ...

 
forum_thread

Need help to make this test work and define proper annotations for entities Lists

Hi, I can't get this simple test case to work, i know it is probably due to the lack of proper annotations on entities list, could anyone help me to define them? NB in this test case I didn't set all entities methods for the sake of clarity, also in actual application no field are public nor static and no entity is static.    ... and no entity is static.    package testodb ;   import java. io . File ; import ...

 
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: ... tried the following code and it seems to work: package test ;     import java. util . *; import ...

 
issue

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... work correctly with not enhanced JPA entities. package objectdb. examples ;   import java. util . HashMap ...