Home » Search

About string

21-30 of 200 Refresh
Forum
21

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors ... ? Changing a field from long to String should not require any specific action. Actually such schema
Forum
20

like operator (String)

, alsothere exists an @Index for String email         Thank you for this report. You are right, LIKE
Forum
20

String comparison in query where clause

I am having trouble getting a simple string comparison to work in an SQL "where" clause.  It is my understanding that queries are case sensitive by default and I do not want that, so I am constructing the query as follows... SELECT e FROM Exercise AS e WHERE UPPER(e.name) = ?0 and then I
Issue
20

Error reading UTF string (Serialized Objects in Explorer)

Error reading UTF string (Serialized Objects in Explorer)
Manual
18

Query Parameters in JPA

with different parameter values (arguments) is more efficient than using a new query string for every query ... getCountryByName(EntityManager em, String name) { TypedQuery query = em.createQuery ... . Named parameters can be easily identified in a query string by their special form, which is a colon
JPA Doc
17

javax.persistence.criteria.CriteriaBuilder

- expression Returns: coalesce expression Since: JPA 2.0 Expression< String> concat( Expression< String> x, String y) Create an expression for string concatenation. Create an expression for string concatenation. Parameters: x - string expression y - string Returns: expression corresponding to concatenation
Manual
16

Index Definition

.annotations.Unique; @Entity public class EntityWithSimpleIndex { @Index String ... , Long, Float, Double. java.math.BigInteger, java.math.BigDecimal. java.lang. String. java.util.Date ... ","firstName"}) public class EntityWithCompositeIndex { String firstName; String lastName
Manual
15

JPA Criteria API Queries

JPQL queries are defined as strings, similarly to SQL. JPA criteria queries, on the other hand ... . On the other hand, for many developers string based JPQL queries, which are very similar to SQL queries, are easier to use and understand. For simple static queries - string based JPQL queries (e.g
JDO Doc
14

javax.jdo.Constants

. Since: JDO 2.1 String ANONYMOUS_PERSISTENCE_MANAGER_FACTORY_NAME The name of the anonymous PersistenceManagerFactory, which is the empty string. The name of the anonymous PersistenceManagerFactory, which is the empty string. Since: JDO 2.1 String ELEMENT_INSTANCE_LIFECYCLE_LISTENER The name of the instance
Manual
14

SELECT clause (JPQL / Criteria API)

, the following query returns country names as String instances, rather than Country objects: SELECT c.name ... results. The results of the above query are received as a list of String values: TypedQuery< String> query = em.createQuery( "SELECT c.name FROM Country AS c", String.class); List< String