ObjectDB ObjectDB

Internal Website Search

51-60 of 159 resultsRefresh

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: SELECT event FROM Calendar c1, SharedCalendar c2 INNER JOIN c1

Error 363 - Failed to read value of inverse relationship

private String id; @OneToMany(mappedBy="town") private Set<EEvent> events; public Set<IEvent> getEvents() { Set<IEvent> events = new HashSet<IEvent>(); if(this.events != null) { events.addAll(this.events); } return events; } public void

Query fails with failed to read

.jetty.websocket.common.events.JettyListenerEventDriver.onTextMessage(JettyListenerEventDriver.java:128 ... :69) org.eclipse.jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:65) org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame

Exception makes the system unusable for several minutes

.onWebSocketText(WebSocketServerListener.java:172) at org.eclipse.jetty.websocket.common.events ... .jetty.websocket.common.events.AbstractEventDriver.appendMessage(AbstractEventDriver.java:65) at org.eclipse.jetty.websocket.common.events.JettyListenerEventDriver.onTextFrame


" event gets fired whenever a persistence-capable class is loaded and gets registered ... of a persistence-capable class. Since: JDO 1.0 void registerClass( RegisterClassEvent event) This method gets ... -capable class is registered. Parameters: event - a RegisterClassEvent instance describing the registered class plus metadata. Since: JDO 1.0

addInstanceLifecycleListener(listener, classes)

listener, Class... classes ) Adds the listener instance to the list of lifecycle event listeners ... as null, events for all persistent classes and interfaces will be sent to listenerInstance. The listenerInstance will be called for each event for which it implements the corresponding listenerInstance


Method javax.jdo.listener.InstanceLifecycleEvent int getEventType() Returns the event type that triggered this event. Returns: the event type Since: JDO 2.0

InstanceLifecycleEvent(source, type, target)

Constructor javax.jdo.listener.InstanceLifecycleEvent InstanceLifecycleEvent( Object source, int type, Object target ) Creates a new event object with the specified source, type, and target. Parameters: source - the instance that triggered the event type - the event type target - the "other" instance Since: JDO 2.0


Method javax.jdo.listener.InstanceLifecycleEvent Object getPersistentInstance() Returns the persistent instance involved in the event. Returns: The persistent instance involved in the event, or null if there was none. Since: JDO 2.0 See Also: "Section 12.15, Java Data Objects 2.0 Specification"


Method javax.jdo.listener.InstanceLifecycleEvent Object getDetachedInstance() Returns the detached instance involved in the event. Returns: The detached instance involved in the event, or null if there was none. Since: JDO 2.0 See Also: "Section 12.15, Java Data Objects 2.0 Specification"

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