Internal Website Search

101-150 of 200 results

How to do multithreading with embedded ObjectDB

How to do multithreading with embedded ObjectDB

explorer fails to connect to embedded server

explorer fails to connect to embedded server

Best practice: Database update/migration of embedded databases in products

Best practice: Database update/migration of embedded databases in products

How to open a running db in ObjectDB Explorer?

of the data, not the live information. * I forgot to mention that the db is used in embedded mode. zmirc Mircea Chirac There are two possible solutions. You can switch from embedded mode to client-server mode. Unlike embedded mode, client server mode supports accessing a database concurrently from

Cascade type annotaion on an embeddable type

Assume we have the following classes: @Entity public class Restaurant { /* @ Embedded */ private ... , the @ Embedded annotation "Specifies a persistent field or property of an entity whose value is an instance ... the Location field with the @ Embedded annotation? And do we have to use this annotation also? In

Cascading makeTransient

the application cache only some embedded parts of those objects (let's call them class B). This application ... defined as an entity (@Entity is missing)" because B is defined as embedded -only. I tried also calling ... of the owner object as long as the embedded object is in use, as a fix to issue #1620 (so this reported issue

High availability and other pratical questions

it: As the embedded DB seems to be with superior performance would you recommend using it with TomEE ... ? What is the overhead of the Transaction Replayer?   Many thanks, Amit   gemini Amit Naveh Embedded mode is faster, so embedding ObjectDB in the main Tomcat server will improve performance

Unexpected internal exception during set field of an Embeddable to null

the array of persistent fields of the  SignalValueImpl embedded class, which unexpectedly happens ... the project and enhancing all classes again may solve the issue. If it doesn't please upload the embedded ... again. (with ObjectDB 2.6.8.b05) The error is now caused by another call. But it is again the embedded

javax.persistence.AttributeOverride

or field. May be applied to an entity that extends a mapped superclass or to an embedded field or ... value. To override mappings at multiple levels of embedding , a dot (".") notation form must be used in the name element to indicate an attribute within an embedded attribute. The value of each

javax.persistence.Convert

to an embedded attribute or to a map collection attribute whose key or value is of embeddable type (in ... conversion mappings at multiple levels of embedding , a dot (".") notation form must be used in the attributeName element to indicate an attribute within an embedded attribute. The value of each identifier

Open several objectdb databases the same time

Golyshkin In embedded mode a database can only be accessed by one process at a time. The server mode ... the undocumented embedded -server mode , in which the first process opens the database in embedded mode ... regular embedded mode API, but actually these additional database connections are implemented as client

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I ... will probably not help you. Please clarify your need. Do you want to use the embedded server mode, i.e. to run a database in embedded mode and still connect to it in client-server mode? support Support

javax.persistence.AssociationOverride

by an embeddable class (including an embeddable class embedded within another embeddable class ... at multiple levels of embedding , a dot (".") notation syntax must be used in the name element to indicate an attribute within an embedded attribute. The value of each identifier used with the dot

javax.persistence.OrderBy

of the associated class or embedded class within it. The properties or fields used in the ordering ... to refer to an attribute within an embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property. The OrderBy annotation

javax.persistence.OneToOne

to indicate the relationship attribute within the embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property. Example 1 ... ; @ Embedded LocationDetails location; ... } @Embeddable public class LocationDetails { int officeNumber

javax.persistence.ManyToOne

to indicate the relationship attribute within the embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property. Example 1: @ManyToOne ... getCustomer() { return customer; } Example 2: @Entity public class Employee { @Id int id; @ Embedded JobInfo

javax.persistence.ManyToMany

within the embedded attribute. The value of each identifier used with the dot notation is the name of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany @JoinTable(name="CUST

javax.persistence.Embeddable

. Each of the persistent properties or fields of the embedded object is mapped to the database table ... ; protected String state; @ Embedded protected Zipcode zipcode; } @Embeddable public class Zipcode { protected

javax.persistence.EmbeddedId

may only be used to override those attributes of the embedded id that do not correspond to the relationship to the parent entity. Relationship mappings defined within an embedded id class are not supported

SingularAttribute.isId() - JPA Method

JPA Method in javax.persistence.metamodel.SingularAttribute boolean isId () Is the attribute an id attribute. This method will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or an attribute of an id class. Return: boolean indicating whether the attribute is an id Since: JPA 2.0

javax.persistence.metamodel.SingularAttribute

will return true if the attribute is an attribute that corresponds to a simple id, an embedded id, or

javax.persistence.metamodel.MappedSuperclassType

type has a single id attribute. Returns true for a simple id or embedded id; returns false

javax.persistence.metamodel.Attribute$PersistentAttributeType

JPA Enum PersistentAttributeType java.lang.Object ∟  java.lang.Enum ∟  javax.persistence.metamodel.Attribute $PersistentAttributeType Since: JPA 2.0 Enum Constants BASIC Basic attribute Since: JPA 2.0 ELEMENT_COLLECTION Element collection Since: JPA 2.0 EMBEDDED Embeddable class

javax.persistence.Subgraph

JPA Interface Subgraph Type Parameters: - The type of the attribute. This type represents a subgraph for an attribute node that corresponds to a Managed Type. Using this class, an entity subgraph can be embedded within an EntityGraph. See Also: EntityGraph AttributeNode NamedSubgraph Since: JPA 2

javax.persistence.AttributeOverrides

JPA Annotation AttributeOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple properties or fields. Example: @ Embedded @AttributeOverrides({ @AttributeOverride(name="startDate", column=@Column("EMP_START")), @AttributeOverride(name="endDate

javax.persistence.metamodel.IdentifiableType

attribute. Returns true for a simple id or embedded id; returns false for an idclass. Return: boolean

javax.persistence.metamodel.EntityType

for a simple id or embedded id; returns false for an idclass. Return: boolean indicating

javax.persistence.MapsId

id; ... @MapsId("empid") // maps the empid attribute of embedded id @ManyToOne Employee emp

IdentifiableType.hasSingleIdAttribute() - JPA Method

JPA Method in javax.persistence.metamodel.IdentifiableType boolean hasSingleIdAttribute () Whether the identifiable type has a single id attribute. Returns true for a simple id or embedded id; returns false for an idclass. Return: boolean indicating whether the identifiable type has a single id attribute Since: JPA 2.0

Query fails with failed to read

when using a getResultList() on a query. there are not any logs in the log (we are using embedded ... with the embedded ObjectDB but by a different process (anti-virus? virus? backup? another application that uses ... embedded objectdb). An error occured exactly at that time while they used still the old objectdb binaries

Issues with JDO Casting & Full Qualified Names

. embeddeds .put("test", new EmbeddedA());   entity. embeddeds .put("test2", new EmbeddedB());   em ... = "SELECT COUNT(e) FROM MyEntity e WHERE ((com.test.F328.EmbeddedB)e. embeddeds .get('test2')).superB ... ();   emf.close(); } @Entity public static final class MyEntity {   Map embeddeds = new

stress test -> com.objectdb.o.InternalException: null

. It would be interesting to check the same test, if possible, in embedded mode. This could narrow the problem ... during the load. I'll do the embedded experiment and create a sample next weekend, hopefully. PS. I'm ... Mircea Chirac Good news! I've tried in embedded mode. None of the errors seem to appear

javax.jdo.annotations.Persistent

are dependent. Since: JDO 2.1 String embedded default "" Whether this member is embedded . Since: JDO 2.1 String embeddedElement default "" Whether the elements of this member are embedded . Since: JDO 2.1 String embeddedKey default "" Whether the keys of this member are embedded . Since: JDO 2.1 String

javax.jdo.annotations.Value

(and will be deleted when the owner is deleted). Since: JDO 2.1 String embedded default "" Whether this value is embedded . Since: JDO 2.1 Embedded [] embeddedMapping default {} The embedded mapping

javax.jdo.annotations.Persistent.persistenceModifier

on the member. One possible use for specifying persistenceModifier is for embedded instances in which a member is not persistent but in the non- embedded instances the member is persistent. Note that it is not portable to specify a member to be not persistent in the non- embedded case and persistent in the embedded usage. Since: JDO 2.1

javax.jdo.annotations.Key

(and will be deleted when the owner is deleted). Since: JDO 2.1 String embedded default "" Whether this key is embedded . Since: JDO 2.1 Embedded [] embeddedMapping default {} The embedded mapping for the key

javax.jdo.annotations.Element

embedded default "" Whether this element is embedded . Since: JDO 2.1 Embedded [] embeddedMapping default {} The embedded mapping for the element. Since: JDO 2.1 Extension [] extensions default {} Vendor

javax.jdo.annotations.Persistent.name

of the member when this is embedded in another object. The fully-qualified member name is used. For example, "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class Line that is embedded in a member called line. Since: JDO 2.1

javax.jdo.annotations.Persistent.nullIndicatorColumn

JDO Annotation Attribute in javax.jdo.annotations.Persistent String nullIndicatorColumn default "" Null indicator column for this member. Used for nested embedded fields or properties to indicate whether the embedded instance should have a null value. Since: JDO 2.1

javax.jdo.annotations.Key.embeddedMapping

JDO Annotation Attribute in javax.jdo.annotations.Key Embedded [] embeddedMapping default {} The embedded mapping for the key. Since: JDO 2.1

javax.jdo.annotations.Value.embeddedMapping

JDO Annotation Attribute in javax.jdo.annotations.Value Embedded [] embeddedMapping default {} The embedded mapping for the value. Since: JDO 2.1

javax.jdo.annotations.Element.embeddedMapping

JDO Annotation Attribute in javax.jdo.annotations.Element Embedded [] embeddedMapping default {} The embedded mapping for the element. Since: JDO 2.1

javax.jdo.annotations.Persistent.embeddedValue

JDO Annotation Attribute in javax.jdo.annotations.Persistent String embeddedValue default "" Whether the values of this member are embedded . Since: JDO 2.1

javax.jdo.annotations.Persistent.embeddedKey

JDO Annotation Attribute in javax.jdo.annotations.Persistent String embeddedKey default "" Whether the keys of this member are embedded . Since: JDO 2.1

javax.jdo.annotations.Persistent.embeddedElement

JDO Annotation Attribute in javax.jdo.annotations.Persistent String embeddedElement default "" Whether the elements of this member are embedded . Since: JDO 2.1

javax.jdo.annotations.PersistenceCapable

String embeddedOnly default "" Whether objects of this class or interface can only be embedded

javax.jdo.annotations.PersistenceCapable.embeddedOnly

JDO Annotation Attribute in javax.jdo.annotations.PersistenceCapable String embeddedOnly default "" Whether objects of this class or interface can only be embedded . Since: JDO 2.1

Query.deletePersistentAll() - JDO Method

JDO Method in javax.jdo.Query long deletePersistentAll () Deletes all the instances of the candidate class that pass the filter. Returns the number of instances of the candidate class that were deleted, specifically not including the number of dependent and embedded instances. Dirty instances

javax.jdo.Query

, specifically not including the number of dependent and embedded instances. Dirty instances of affected

javax.jdo.annotations.EmbeddedOnly

JDO Annotation EmbeddedOnly Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for whether the class is only for persisting embedded into another object. Same as specifying @PersistenceCapable(embeddedOnly="true"). Since: JDO 2.1 This annotation is a marker annotation (with no attributes).