Questions tagged [eclipselink]

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

5055 questions
2
votes
1 answer

EclipseLink MongoDB @ManyToOne classCastException on very simple example

I trying to make EclipseLink (2.4.1) over MongoDB works as expected when having relations. But ... I've got to Entity: @Entity @NoSql(dataType="account", dataFormat=DataFormatType.MAPPED) // dataType -> collectionName, MAPPED -> because object are…
jmcollin92
  • 2,896
  • 6
  • 27
  • 49
2
votes
2 answers

Java Eclipselink on TomEE gives "Missing required persistence.xml"

I'm trying to setup Eclipselink on TomEE but i ran into the problem that i get an error about missing the persistence.xml. But the persistence.xml is present at ProjectPath/META-INF/persistence.xml. I'm running a Maven project on IntelliJ with…
user1226868
  • 1,708
  • 5
  • 18
  • 29
2
votes
2 answers

JAXB/MOXy: Wrong namespace for element

I am using MOXy and classes which belong to different namespaces, but MOXy always adds the wrong namespace to the referenced object. Why is this simple example not working as expected? AtomLink.java: package…
Herr-Herner
  • 491
  • 6
  • 22
2
votes
2 answers

In a JPA entity, how can I define the SQL used on a getter?

I have an entity named PetOwner. PetOwner has a list of Pets. And each Pet has a Store (ie: the store this pet came from). Pet is an abstract class and getting a concrete version does lots of joins (@Inheritance(strategy =…
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
2
votes
1 answer

Can't get work EclipseLink DynamicEntity with Oracle sequence

I'm trying to persist Dynamic Entity with EclipseLink 2.3. If I'm not configuring sequence and just assign a value to field it works. Also not setting a value works, sequence is working with trigger in database. But I want to get generated id of…
2
votes
0 answers

Enhance generated DDL of EclipseLink

Is it possible to change the generated DDL statements of EclipseLink during the creation process? In the persistence.xml I use the table-creation-suffix, but it adds only some things to the CREATE TABLE statements. There are also a lot of ALTER…
witchi
  • 345
  • 3
  • 16
2
votes
2 answers

JPA tables are ID is mandatory?

I saw that the ID type is defined in every JPA table. Is it mandatory? Or is there any option that I can get class without the ID member?
Stefan Strooves
  • 624
  • 2
  • 10
  • 16
2
votes
1 answer

How to mark up 3rd party immutable object in JAXB(Eclipse MOXy)

I have three 3rd party immutable objects(Foo, Bar, BarFactory) and binding.xml. I'd like to mark up 3rd party immutable objects in binding.xml, but JAXB require zero argument constructor. Is it impossible to marshall these classes in JAXB and…
Jin
  • 21
  • 2
2
votes
1 answer

JPA criteriaquery tuple onetomany join

I need to do a join with criteria builder and then to get result of Tuple(Object[]) type. First Tuple element should be Preke (and this works correctly) and second Tuple element should be a List containing @OneToMany objects.…
Minutis
  • 1,193
  • 1
  • 17
  • 47
2
votes
2 answers

JPA, EclipseLink and Android

I built a JAVA application for personal use, that makes the persistence with JPA and EclipseLink. I'm making a equal for android. I would like to synchronize data via Dropbox. Is there JPA and EclipseLink for android? I have not found anything about…
user60108
  • 3,270
  • 2
  • 27
  • 43
2
votes
1 answer

Can not creat tables from entities. JTA and Glassfish

I have a question about JTA with Glassfish. For days Iam trying to solve this problem. I want to write an Entity in a database. To keep it simple I use the GlassfishDB. In the Glassfish-Admin Console I use the jdbc/__default as Resource. The…
Philipp
  • 23
  • 4
2
votes
2 answers

Dynamic mask data for web project

Currently our web projects need to anonymize some data. (for example a security number like 432-55-1111 might appear as 432-55-**) These datas may contain email, id, price, date ,and so on. The tables' name and columns that needed to be masked was…
FishGel
  • 1,100
  • 2
  • 16
  • 27
2
votes
3 answers

Choose framework

Im thinking about starting a website project with a framework that will be also a study project for me. To be more exact a biologist kinda site with quite some filters and there is the question also if I should use separate database or flat file for…
obeliksz
  • 468
  • 9
  • 24
2
votes
1 answer

How to compare date from java to mysql timestamp field

Sorry for posting this same question again but i am curious to know. I want to know how we can compare a current date from java with stored date in mysql. date stored in MySQL is 2013-01-04 13:15:00 when i compare this date in java by getting…
JN_newbie
  • 5,492
  • 14
  • 59
  • 97
2
votes
1 answer

Dynamic CDATA in JAXB using MOXy

I am using EclipseLink JAXB (MOXy). I have an issue where a property of a java class can be CDATA or not dynamically. For example, class Embed{ //@XmlValue only //OR @XmlValue @CDATA private String value; //THIS CAN BE CDATA OR NOT } I…
user1946448
  • 21
  • 1
  • 3