ObjectDB Database Search
51-100 of 200 resultsHow to convert a boolean to an int in the query? How to convert a boolean to an int in the query? I have five parameters of type boolean in ... for your help galandor Orlov Sergey Consider adding an int field to your entity class, that will sum them. You can calculate it in a JPA lifecycle event . Currently you cannot convert boolean to int in | |
Comparison in JPQL and Criteria API, including primitive types ( byte , short , char , int , long , float , double ), wrapper types ( Byte | |
UPDATE SET Queries in JPA/JPQL;"UPDATE Country SET population = 0, area = 0"); int updateCount = em. executeUpdate | |
Chapter 1 - Quick Tour that contains points in the plane. Each point is represented by an object with two int fields, x and y | |
jakarta.persistence.TypedQuery) explains how to use TypedQuery . Public Instance Methods int executeUpdate () Execute an update or delete ... . Inherited from Query Since: Jakarta Persistence (JPA) 3.2 int getFirstResult () The position of the first ... (JPA) 2.0 int getMaxResults () The maximum number of results the query object was set to retrieve | |
jakarta.persistence.Query Chapter 4 - JPA Queries (JPQL / Criteria) explains how to use Query . Public Instance Methods int ... . Since: Jakarta Persistence (JPA) 3.2 int getFirstResult () The position of the first result the query object ... int getMaxResults () The maximum number of results the query object was set to retrieve. Returns | |
jakarta.persistence.criteria.CriteriaBuilder (JPA) 1.0 Expression left ( Expression x , int len ) Create an expression for the leftmost ... pattern , int from ) Create expression to locate the position of one string within another, returning ... (JPA) 1.0 Expression right ( Expression x , int len ) Create an expression for the rightmost | |
jakarta.persistence.Timeout Persistence (JPA) 3.2 Public Static Methods Timeout milliseconds ( int milliseconds ) Specify a timeout in milliseconds. Since: Jakarta Persistence (JPA) 1.0 Timeout ms ( int milliseconds ) Specify ... s ( int seconds ) Specify a timeout in seconds. (Abbreviation of seconds .) Since: Jakarta | |
jakarta.persistence.GenerationType . For a primary key of type Long , Integer , long , or int , the provider selects between TABLE , SEQUENCE ... , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0 SEQUENCE Indicates that the persistence ... primary keys of type Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1.0 TABLE | |
jakarta.persistence.MapKeyColumn public class Item { @Id int id; ... @ElementCollection @MapKeyColumn(name = "IMAGE_NAME") @Column(name ... Persistence (JPA) 1.0 int length (Optional) The column length. Applies only to columns whose type ... Persistence (JPA) 1.0 int precision (Optional) The precision for a column of SQL type decimal or numeric | |
jakarta.persistence.MapKeyClass is not used when MapKeyClass is specified and vice versa. Example 1: @Entity public class Item { @Id int ... can be defaulted @Entity public class Item { @Id int id; ... @ElementCollection Map images; ... } Example 3: @Entity public class Company { @Id int id; ... @OneToMany(targetEntity = com.example | |
jakarta.persistence.Column the primary table. Default: "" Since: Jakarta Persistence (JPA) 1.0 int length (Optional) The column length ... types. Default: 255 Since: Jakarta Persistence (JPA) 1.0 int precision (Optional) The precision ... should be inferred. Default: 0 Since: Jakarta Persistence (JPA) 1.0 int scale (Optional) The scale | |
jakarta.persistence.TableGenerator", allocationSize = 1) @Id @GeneratedValue(strategy = TABLE, generator = "empGen") int id; ... } Example 2 ... ", valueColumnName = "GEN_VALUE", pkColumnValue = "ADDR_ID") @Id @GeneratedValue(strategy = TABLE) int id ... Default: "" Since: Jakarta Persistence (JPA) 1.0 int initialValue (Optional) The initial value to be used | |
jakarta.persistence.MapKeyJoinColumn and the default values apply. Example 1: @Entity public class Company { @Id int id; ... @OneToMany ... ") Map organization; } Example 2: @Entity public class VideoStore { @Id int id; String name; Address ... ; ... } Example 3: @Entity public class Student { @Id int studentId; ... @ManyToMany // students and courses | |
jakarta.persistence.EnumeratedValue , and must be of type: byte , short , or int for EnumType.ORDINAL , or String for EnumType.STRING ... . Example: enum Status { OPEN(0), CLOSED(1), CANCELLED(-1); @EnumeratedValue final int intValue; Status( int | |
jakarta.persistence.OneToOne public class Employee { @Id int id; @Embedded LocationDetails location; ... } @Embeddable public class LocationDetails { int officeNumber; @OneToOne ParkingSpot parkingSpot; ... } @Entity public class ParkingSpot { @Id int id; String garage; @OneToOne(mappedBy = "location.parkingSpot") Employee | |
jakarta.persistence.PessimisticLockException addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage ... (), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.LockTimeoutException addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage ... (), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.ManyToOne getCustomer() { return customer; } Example 2: @Entity public class Employee { @Id int id; @Embedded JobInfo ... pm; // Bidirectional } @Entity public class ProgramManager { @Id int id; @OneToMany(mappedBy | |
jakarta.persistence.EntityNotFoundException), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage ... (), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.EntityExistsException( int ), getCause(), getLocalizedMessage(), getMessage(), getOurStackTrace(), getStackTrace ... clone(), equals(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.Version: int , Integer , short , Short , long , Long , java.sql.Timestamp , Instant , LocalDateTime . This field declares a version number: @Version @Column(name = "REVISION") protected int version | |
jakarta.persistence.Tuple correspond to an element in the query result tuple. Since: Jakarta Persistence (JPA) 1.0 X get ( int ... get ( int i ) Get the value of the element at the specified position in the result tuple. The first | |
jakarta.persistence.AssociationOverride Employee { @Id int id; @AssociationOverride( name = "phoneNumbers", joinTable = @JoinTable(name ... ; } @Entity public class PhoneNumber { @Id int number; @ManyToMany(mappedBy = "contactInfo.phoneNumbers | |
jakarta.persistence.SchemaValidationException), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage ... (), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.QueryTimeoutException(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage ... (), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.RollbackException), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage(), getOurStackTrace ... (), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.SequenceGenerator: "" Since: Jakarta Persistence (JPA) 2.0 int initialValue (Optional) The value from which the sequence object is to start generating. Default: 1 Since: Jakarta Persistence (JPA) 1.0 int allocationSize | |
jakarta.persistence.TransactionRequiredException addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage ... (), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.NonUniqueResultException(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage ... (), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.NoResultException inherited from java.lang.Throwable addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace( int ... clone(), equals(Object), finalize(), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.OptimisticLockException.Throwable addSuppressed(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause ... (), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.PersistenceException(Throwable), fillInStackTrace(), fillInStackTrace( int ), getCause(), getLocalizedMessage(), getMessage ... (), hashCode(), notify(), notifyAll(), wait(), wait(long), wait(long, int ), wait0(long) | |
jakarta.persistence.PersistenceUnitTransactionType(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.FlushModeType(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods inherited | |
jakarta.persistence.LockModeType), wait(long, int ), wait0(long) Additional JDK methods inherited from java.lang.constant.Constable | |
jakarta.persistence.InheritanceType(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.ConstraintMode(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.DiscriminatorType), wait(long, int ), wait0(long) Additional JDK methods inherited from java.lang.constant.Constable | |
jakarta.persistence.DiscriminatorColumn with columnDefinition . Default: "" Since: Jakarta Persistence (JPA) 3.2 int length (Optional) The column length | |
jakarta.persistence.FetchType(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods inherited from java.lang | |
jakarta.persistence.EnumType(), hashCode(), notify(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long | |
jakarta.persistence.criteria.Predicate.BooleanOperator(long), wait(long, int ), wait0(long) Additional JDK methods inherited from java.lang.constant | |
jakarta.persistence.criteria.Nulls(), hashCode(), notify(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional | |
jakarta.persistence.metamodel.Attribute.PersistentAttributeType(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.metamodel.Bindable.BindableType(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.metamodel.PluralAttribute.CollectionType(), wait(long), wait(long, int ), wait0(long) Additional JDK methods inherited from java.lang.constant | |
jakarta.persistence.ValidationMode(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long) Additional JDK methods | |
jakarta.persistence.Transient: @Entity public class Employee { @Id int id; @Transient User currentUser; ... } Since: Jakarta | |
jakarta.persistence.metamodel.Type.PersistenceType(), hashCode(), notify(), notifyAll(), toString(), wait(), wait(long), wait(long, int ), wait0(long |