ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh

Query over the keySet of a map field with collection parameter

It is possible to execute a query over a keySet of a map field with comparing to a collection ... " + "WHERE e.map member of ?1"; TypedQuery<EntityParent> q = em.createQuery(query ... ; } @OneToMany (cascade = CascadeType.ALL) public Map<String, EntityChild> map = new HashMap

Index on map key

Is there a way to create an Index with @Index on the key of a map? wua Andreas Wurm Indexes on map keys as well as queries on map keys are currently not supported. But as a workaround you can use ... = System.currentTimeMillis();         Query query = em.createQuery(             "SELECT o FROM MyEntity o JOIN o.map e

Extended mapping-definitions

The described feature is not available in any object-db I know, but possible with mapping ... its class) gets mapped to a java class. So cats get mapped to the java class 'Cat', dogs to 'Dog ... with MetaClass.className= "Dog" As consequence I would get a huge main-table with the default-mapping

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah ... , go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. So my performance issue ... : The mapped by reference from MyEntity to MyEntityChild is eager. Therefore, retrieval of 10,000 MyEntity

Annotate a Map field with @ElementCollection or @Basic

Hello, we have an entity with a field whose type is a Map. Once we annotate the field with @ElementCollection, in the other case with @Basic. Is @Basic also a valid annotation for a Map field ... { @ElementCollection private Map<Integer, String> values = new HashMap<>(); @Basic private

Index on values from a Map

Hi, is there a way to put an Index on the values from an Map? For example, if I have a Map like this: private Map<String, TemplateModel> mmsContainer and I want to access it fast in following way ... on a map value. Due to this issue using maps in queries is not fully supported yet, but queries

Why are my Map entries not stored?

Why are my values of the map "states" not stored in the database? It seems the 'State' is stored ... ",     orphanRemoval=true) @MapKeyEnumerated(EnumType.STRING)     private Map<State, Authority> states = new ... ) private Map states = new HashMap(); Is this correct now? "mappedBy" is not required? But I have to set

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch=FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok ... it to a db and re-loads it. The EntityManager is closed before accesing any fields. Finally the nested map

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals ... is unavailable during instantiation of the map. The following test case demonstrates the problem ... ();         MyKeyEntity key = new MyKeyEntity("key");         em.persist(key);         entity.map

[ODB1] Chapter 4 - JDO Metadata

explained in section 4.5. 4.4 Arrays, Collections and Maps Special XML sub elements are available for array, collection and map fields: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jdo SYSTEM "http ... > <field name="f2" embedded="true"> <map embedded-key="true" embedded-value="true

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support