About Entity

forum_thread

Problems using Maven Repo

I've worked around this by downloading "manually" but I don't seem to be able to resolve objectdb Maven dependency automatically - have the relevant repository entry etc. in my POM, Maven doesn't seem to be able to find anything. Wondering if there are some operational problems or if I should return to scratching my head. Many thanks ... I got follow Java Warning that tells me that Entity Class will be ignored. ../WEB-INF/lib/objectdb-2.6.2.jar' contains offending class: javax.persistence.Entity. It will be ignored.   If i download the jar File ...

 
forum_thread

String Contains Query Result - Possible?

Hi, I have a managed database for an Entity, "Program", filled with String fields, "description", that are effectively unique sub-strings of a system generated description. Example: System: For Series Sales usage: 6014-Private Individual Swim Lessons  10-Pack Database: 6014-Private Individual Swim Lessons  10-Pack I would like to know if it is possible to have a query return the "Program" object using the System Description? I've considered doing something similar to... ... Hi, I have a managed database for an Entity, "Program", containing a String field, "description", that is ...

 
forum_thread

Stacktrace in Explorer when running query

Hello, whenever I run a query in Explorer I get the following stacktrace (cf. attached file). My environment is: macOS Sierra 10.12.1 with java version "1.8.0_112" Is there anything I can do to fix this? Many thanks in advance Alex ... The stack trace indicates a problem in mapping entity fields to an Explorer view. Try to remove (or move) the file ...

 
api-jpa

ManyToMany.fetch

(Optional) Whether the association should be lazily loaded or must be eagerly fetched.(Annotation Element of javax.persistence.ManyToMany)

 
api-jpa

setFlushMode(flushMode)

Set the flush mode type to be used for the query execution.(Method of javax.persistence.Query)

 
forum_thread

Multiple joins did not return expected result

Hello, I have 3 entity classes: Event - String title Calendar - List<Event> @OneToMany SharedCalendar extends Calendar - Calendar original Now I want to retrieve all events from a specific calendar by its id like: ... Hello, I have 3 entity classes: Event - String title   Calendar - ...

 
api-jpa

javax.persistence.NamedNativeQueries

Used to specify multiple native SQL named queries.(Annotation of JPA)

 
api-jpa

EntityResult.discriminatorColumn

Specifies the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance.(Annotation Element of javax.persistence.EntityResult)

 
api-jpa

MapKeyJoinColumn.referencedColumnName

(Optional) The name of the column referenced by this foreign key column.(Annotation Element of javax.persistence.MapKeyJoinColumn)

 
forum_thread

How to creat a Query with Sql which returns a List<Mark> marks

How can i get out of the db my Athlete Objekt his list<Mark> marks collection with a createQuery Sql-Statement. the Mark and Athlete Object do not really have a primary or secondary key together, the list mark is just stored in the athletes object, not as an embeddable but as an entity. ... in the athletes object, not as an embeddable but as an entity. i tried with find(Mark.class, oldMark.getId()); but somehow the ...