ObjectDB Database Search
101-150 of 200 resultsDuplicate Entity class names causes Exception in Query( name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery( name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM Item x") }) public ... ( name = "objdbTest.Singleton.count", query = "SELECT COUNT(x) FROM objdbTest.Item x | |
Is named-query supported in orm.xml I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in ... -type.2.4.a: Invalid content was found starting with element ' named - query '. One of '{"http://java ... }' is expected. Does ObjectDB support externalised named queries , if so what's the recommended way | |
AnnotationAttrRef jakarta.persistence.TableGenerator.name JPA Annotation Attribute in jakarta.persistence.TableGenerator String name default "" (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key attribute. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.AssociationOverride.name JPA Annotation Attribute in jakarta.persistence.AssociationOverride String name default null (Required) The name of the relationship property whose mapping is being overridden if property-based access is being used, or the name of the relationship field if field-based access is used. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.CheckConstraint.name JPA Annotation Attribute in jakarta.persistence.CheckConstraint String name default "" (Optional) The name of the constraint. Defaults to a provider-generated name . Since: JPA 3.2 | |
AnnotationAttrRef jakarta.persistence.JoinTable.name JPA Annotation Attribute in jakarta.persistence.JoinTable String name default "" (Optional) The name of the join table. Defaults to the concatenated names of the two associated primary entity tables, separated by an underscore. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.name JPA Annotation Attribute in jakarta.persistence.MapKeyJoinColumn String name default "" (Optional) The name of the foreign key column for the map key. The table in which it is found depends ... (only applies if a single join column is used.) The concatenation of the following: the name | |
AnnotationAttrRef jakarta.persistence.Table.name JPA Annotation Attribute in jakarta.persistence.Table String name default "" (Optional) The name of the table. Defaults to the entity name . Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.MapKey.name JPA Annotation Attribute in jakarta.persistence.MapKey String name default "" (Optional) The name of the persistent field or property of the associated entity that is used as the map key. Default: If the name element is not specified, the primary key of the associated entity is used as the map key | |
AnnotationAttrRef jakarta.persistence.MapKeyColumn.name JPA Annotation Attribute in jakarta.persistence.MapKeyColumn String name default "" (Optional) The name of the map key column. The table in which it is found depends upon the context. If the map key ... that is the value of the map. Defaults to the concatenation of the following: the name of the referencing | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.name JPA Annotation Attribute in jakarta.persistence.SequenceGenerator String name default "" (Optional) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key attribute. Since: JPA 1.0 | |
PersistenceConfiguration.property(name,value) - JPA Method JPA Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration property ( String name , Object value ) Set a property of this persistence unit. Parameters: name - the property name value - the property value Return: this configuration Since: JPA 3.2 | |
PersistenceConfiguration.PersistenceConfiguration(name) - JPA Constructor JPA Constructor in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration ( String name ) Create a new empty configuration. An empty configuration does not typically hold enough information for successful invocation of () . Parameters: name - the name | |
PersistenceConfiguration.name() - JPA Method JPA Method in jakarta.persistence.PersistenceConfiguration String name () The name of the persistence unit, which may be used by the persistence provider for logging and error reporting. Return: the name of the persistence unit. Since: JPA 3.2 | |
AnnotationAttrRef jakarta.persistence.OrderColumn.name JPA Annotation Attribute in jakarta.persistence.OrderColumn String name default "" (Optional) The name of the ordering column. Defaults to the concatenation of the name of the referencing property or field; " _ "; " ORDER ". Since: JPA 2.0 | |
AnnotationAttrRef jakarta.persistence.Column.name JPA Annotation Attribute in jakarta.persistence.Column String name default "" (Optional) The name of the column. Defaults to the property or field name . Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.ForeignKey.name JPA Annotation Attribute in jakarta.persistence.ForeignKey String name default "" (Optional) The name of the foreign key constraint. Defaults to a provider-generated name . Since: JPA 2.1 | |
AnnotationAttrRef jakarta.persistence.AttributeOverride.name JPA Annotation Attribute in jakarta.persistence.AttributeOverride String name default null (Required) The name of the property whose mapping is being overridden if property-based access is being used, or the name of the field if field-based access is used. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.StoredProcedureParameter.name JPA Annotation Attribute in jakarta.persistence.StoredProcedureParameter String name default "" The name of the parameter as defined by the stored procedure in the database. If a name is not specified, it is assumed that the stored procedure uses positional parameters. Since: JPA 2.1 | |
AnnotationAttrRef jakarta.persistence.UniqueConstraint.name JPA Annotation Attribute in jakarta.persistence.UniqueConstraint String name default "" (Optional) The name of the constraint. Defaults to a provider-generated name . Since: JPA 2.0 | |
CriteriaBuilder.function(name,type,args) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression function ( String name , Class type, Expression ... args ) Create an expression for the execution of a database function. Parameters: name - function name type | |
AnnotationAttrRef jakarta.persistence.Index.name JPA Annotation Attribute in jakarta.persistence.Index String name default "" (Optional) The name of the index. Defaults to a provider-generated name . Since: JPA 2.1 | |
AnnotationAttrRef jakarta.persistence.PersistenceProperty.name JPA Annotation Attribute in jakarta.persistence.PersistenceProperty String name default null The name of the property Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.PersistenceUnit.name JPA Annotation Attribute in jakarta.persistence.PersistenceUnit String name default "" (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context; not needed when dependency injection is used. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.NamedSubgraph.name JPA Annotation Attribute in jakarta.persistence.NamedSubgraph String name default null (Required) The name of the subgraph as referenced from a NamedAttributeNode element. Since: JPA 2.1 | |
PersistenceConfiguration.mappingFile(name) - JPA Method JPA Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration mappingFile ( String name ) Add the path of an XML mapping file loaded as a resource to the configuration. Parameters: name - the resource path of the mapping file Return: this configuration Since: JPA 3.2 | |
AnnotationAttrRef jakarta.persistence.PersistenceContext.name JPA Annotation Attribute in jakarta.persistence.PersistenceContext String name default "" (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.SecondaryTable.name JPA Annotation Attribute in jakarta.persistence.SecondaryTable String name default null (Required) The name of the table. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.QueryHint.name JPA Annotation Attribute in jakarta.persistence.QueryHint String name default null Name of the hint. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.DiscriminatorColumn.name JPA Annotation Attribute in jakarta.persistence.DiscriminatorColumn String name default "DTYPE" (Optional) The name of column to be used for the discriminator. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.FieldResult.name JPA Annotation Attribute in jakarta.persistence.FieldResult String name default null Name of the persistent field or property of the class. Since: JPA 1.0 | |
Selection | |
InterfaceRef jakarta.persistence.StoredProcedureQuery parameter of the given name . This method is not required to be supported for native queries ... - if the parameter of the specified name does not exist IllegalStateException - if invoked on a native query ... parameter of the given name and type. This method is required to be supported for criteria queries | |
InterfaceRef jakarta.persistence.TypedQuery of results Inherited from: Query Since: JPA 2.0 Parameter getParameter (String name ) Get the parameter ... to be supported for native queries . Parameters: name - parameter name Return: parameter object Throws ... : Query Since: JPA 2.0 Parameter getParameter (String name , Class type) Get the parameter | |
InterfaceRef jakarta.persistence.EntityManager Since: JPA 2.1 Query createNamedQuery (String name ) Create an instance of Query for executing a named query written in the Jakarta Persistence query language or in native SQL. Parameters: name - the name of a query defined in metadata Return: the new query instance Throws: IllegalArgumentException | |
Database Transaction Replayer directory whose name is the name of the database file with the odr (ObjectDB Recording) suffix. By ... directory contains two types of files: Backup files - with names of the form .odb Recording files - with names of the form .odr A backup file is an ordinary ObjectDB database file that reflects the state | |
Auto Generated Values The sequence strategy consists of two parts - defining a named sequence and using the named sequence ... a sequence and accepts a name , an initial value (the default is 1) and an allocation size (the default ... to the previously defined named sequence: @Entity // Define a sequence - might also be in | |
Query.setLockMode(lockMode) - JPA Method JPA Method in jakarta.persistence. Query Query setLockMode ( LockModeType lockMode ) Set the lock mode type to be used for the query execution. Parameters: lockMode - lock mode Return: the same query instance Throws: IllegalStateException - if the query is found not | |
Step 2: Entity Class and Persistence Unit , enter src/main/java as Folder Name and click Finish . Open the [New Java Class] dialog box, e.g. by ... ; New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click | |
Step 2: Entity Class and Persistence Unit) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish to create the new class. A new class that should represent Guest | |
Step 2: Entity Class and Persistence Unit Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new entity class. In ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name | |
Step 2: Entity Class and Persistence Unit Next ). Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Next to create the new ... name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name | |
Step 2: Define a JPA Entity Class) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name . Enter Guest as the class name - use exactly that case sensitive class name . Click Finish ... String name ; private Date signingDate; // Constructors: public Guest() { } public Guest(String name | |
Step 2: Define a JPA Entity Class) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name . Enter guest as the package name - use exactly that case sensitive package name . Click Finish ... @GeneratedValue Long id; private String name ; private Date signingDate; // Constructors: public | |
Step 4: Add a Controller Class) and selecting New Class . The package name should be guest . Enter GuestController as the class name - use exactly that case sensitive class name . Click Finish to create ... name = request.getParameter(" name "); if ( name != null) guestDao.persist(new Guest( name | |
Step 4: Add a Servlet Class ... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... .http.HttpServletResponse; @WebServlet( name ="GuestServlet", urlPatterns={"/guest"}) public class | |
Step 4: Add a Servlet Class; New Other... Web Servlet and clicking Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish to create ... .http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet( name | |
Step 4: Add a Servlet Class New Other... Web Servlet and clicking Next . The Java package name should be guest. Enter GuestServlet as the class name - use exactly that case sensitive class name . Click Finish ... a new guest (if any): String name = request.getParameter(" name "); if ( name != null) { em | |
Step 4: Add a Controller Class New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name . The Package should be guest. Click Finish to create the new Spring Controller class. Now ... (HttpServletRequest request) { // Handle a new guest (if any): String name = request.getParameter(" name | |
Step 4: Add a Servlet Class ... Enter GuestServlet as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new servlet class. Now replace the content ... = emf.createEntityManager(); try { // Handle a new guest (if any): String name = request |