String « Eclipse « JPA Q&A





1. JPQL we can't CONCAT(String, Integer) EclipseLink?    stackoverflow.com

In a JPQL query I tried to concatenate a string with a integer, using CONCAT JPQL function, in a select clause, for example: SELECT CONCAT(c.idClient, ' ', c.name) FROM Clients c; But the ...

2. How to get the SQL String From JPQLQuery    stackoverflow.com

I'm using EclipseLink. I've a JPQLquery and I want to get the sql String.. Now I'm doing in this way:

EJBQueryImpl qi = (EJBQueryImpl)jpqlQuery;
String sqlQueryString = qi.getDatabaseQuery().getSQLString();
The problem is that in the sqlQueryString the ...

3. How to add a HashMap in an entity class?    stackoverflow.com

I want to add a mapping as

Map<String,Person> personMap;
inside an Entity class, where Person is an Entity Class. The map is to identify the exact Person corresponding to the String (let it ...

4. How to silently truncate strings while storing them when they are longer than the column length definition?    stackoverflow.com

I have a web app, using EclipseLink and MySQL for storing data. Some of these data are strings, ie varchars in the DB. In the code of entities, the strings have attributes ...

5. Hiberate reveng uses Strings instead of Classes    stackoverflow.com

I am using the reverse engineering tool in hibernate tools in the Eclipse IDE. Whenever I run the reveng, the foreign keys are listed as Strings instead of as their ...