eclipselink Questions
3
Solved
I have a field id defined as below. It's varbinary(16) in database, when i am inserting a new record through JPA, i got "com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for colum...
Bonzer asked 4/6, 2014 at 3:24
16
I am trying to edit a table in Postgresql using JPA in Glassfish using EclipseLink. When I insert an entity, it runs fine. But, when I try to edit or remove the same entity, it fails with the follo...
Voracious asked 17/9, 2010 at 23:53
1
how to do static weaving if we use eclipselink jpa in the spring boot app. There is a lack of enough articles on it in internet. The articles I saw used de.empulse.eclipselink
staticweave-maven-plu...
Refection asked 22/4 at 7:20
5
Solved
Im not finding a way to map the JSON and JSONB datatypes from PostgreSQL using JPA (EclipseLink). Is some one using this datatypes with JPA and can give me some working examples?
Stepper asked 3/10, 2016 at 11:46
10
I am trying to write a JPQL query with a like clause:
LIKE '%:code%'
I would like to have code=4 and find
455
554
646
...
I cannot pass :code = '%value%'
namedQuery.setParameter("%" + this....
Aime asked 27/8, 2009 at 13:29
9
In my project i am using JPA 2.0 with eclipselink inplementation, an I have following problem:
I have defined entity with boolean column:
@Entity
public User {
@Id
@GeneratedValue(strategy = G...
Avram asked 6/6, 2011 at 11:2
3
Solved
My application runs on Payara and provides a REST API but when I try to create an object with a POST request I get the following exception:
Exception [EclipseLink-43] (Eclipse Persistence Service...
Ranchod asked 13/10, 2015 at 13:39
21
There have been some discussions here about JPA entities and which hashCode()/equals() implementation should be used for JPA entity classes. Most (if not all) of them depend on Hibernate, but...
Halfprice asked 17/2, 2011 at 16:22
8
I'm having an Entity which has a primary key / id field like the following:
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
This works well. I'm using EclipseLink to cre...
Gymno asked 17/8, 2012 at 8:21
3
I went back to programming my old program https://github.com/JonkiPro/REST-Web-Services. I've updated Spring Boot from version 15.6 to version 2.0.0. I have encountered many problems with compilati...
Vernievernier asked 18/3, 2018 at 21:5
2
Solved
i have an Entity User, and my DB value for user is:
name totalScore
--------------------
ABC 25
XYZ 30
Now i want to run the query
update user set totalScore=totalScore+ (2*totalScore);
How c...
Quincuncial asked 2/7, 2015 at 13:35
7
Solved
I wanted to write a Converter for JPA that stores any enum as UPPERCASE. Some enums we encounter do not follow yet the convention to use only Uppercase letters so until they are refactored I still ...
Vapor asked 9/5, 2014 at 12:18
2
Solved
I have the following mapping:
@Entity
@Table(name = "Prequalifications")
public class Prequalification implements Serializable
{
...
@ManyToMany
@JoinTable(name = "Partnerships", joinColumns =...
Weider asked 17/3, 2012 at 14:33
5
For example I have a table as Student it's contain columns like id, name, age
I am reverting particular column values by using NativeQuery like below.
Query query = entityManager.createNativeQuer...
Perkoff asked 26/3, 2014 at 7:8
4
Solved
You have the EntityManager.find(Class entityClass, Object primaryKey) method to find a specific row with a primary key.
But how do I find a value in a column that just have unique values and is n...
Locate asked 14/6, 2012 at 13:37
5
Solved
is it possible to access the information in <persistence-unit-metadata> through Java API?
<persistence-unit-metadata>
<persistence-unit-defaults>
<schema>MySchema</sch...
Pudding asked 28/11, 2011 at 15:24
4
Solved
I'm attempting to follow the example located here but get an javax.xml.bind.PropertyException. I receive this exception because of the following line of code:
marshaller.setProperty(MarshallerProp...
Pasquinade asked 7/1, 2014 at 0:47
3
I'm new to JAXB and I want to change the default namespace prefix using EclipseLink MOXy. My package-info.java has the following code lines:
@javax.xml.bind.annotation.XmlSchema (
namespace="http:...
Mufti asked 25/7, 2011 at 14:46
5
Solved
I've updated Spring Boot from version 1.5.6 to 2.0.0 and a lot of problems have started. One is the problem given in the subject.
I have a class with properties
@Data
@ConfigurationProperties("ecl...
Raquelraquela asked 18/3, 2018 at 17:51
5
Solved
I'm trying to add constraints checking, as described here How to specify the cardinality of a @OneToMany in EclipseLink/JPA
Septilateral asked 25/4, 2010 at 8:52
2
Solved
I am working on a client server application. in the Server side i have generated my entity data model with JPA2.0 and EclipseLink as provider. here is one of the classes
@Entity
@Table(name = "Cus...
Pluckless asked 13/12, 2012 at 7:38
5
Solved
I'm working on an EclipseLink project in which one user can "follow" another as can be done on social media sites. I have this set up with a User entity (referencing a table called users) which has...
Hedwig asked 18/4, 2017 at 20:11
13
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 like this:
@Column(name ...
Tantalic asked 4/10, 2011 at 10:35
5
Solved
I can't figure out what I'm doing wrong. I'm learning JPA mapping to a relational DB, by following some tutorials on the web, but can't find one that is straightforward. When I run my project, it g...
Cardie asked 3/6, 2015 at 17:35
4
Solved
I have a class that looks something like this:
@Entity
public class EdgeInnovation {
@Id
public long id;
@ManyToOne
public NodeInnovation destination;
@ManyToOne
public NodeInnovation origin...
Atrophied asked 25/3, 2016 at 0:36
1 Next >
© 2022 - 2024 — McMap. All rights reserved.