Comments (6)
The Hibernate extension was once brought in as contribution, personally I never used it in a real project. So you may help with patches upgrading the head revision to the latest Hibernate version...
from xstream.
I took this on, but it is a quick solution that is not ready to be added to Xstream.
This is what I did:
- Get the latest XStream repo.
- Switch to v-1.4.x branch.
- Copied the xstream-hibernate code into my own project.
- Update my own POM as needed, to reflect what is in the xstream POM.
- Update references to Hibernate classes in util/Hibernate.java:
-- PersistentBag = loadHibernateType("org.hibernate.collection.spi.PersistentBag");
etc.
EnversList = loadHibernateEnversType("org.hibernate.envers.internal.entities.mapper.relation.lazy.proxy.ListProxy");
etc.
I got the correct package + class names from looking at Hibernate 6 source code.
My plan is to implement this using a smarter approach, i.e works with Hibernate 4 or 6 and do proper testing. I hope to get to that soon, but this hack should get you going for now.
from xstream.
I also want to point out that I could not update the HEAD (1.5.0-SNAPSHOT) version since it would not build for me. I was consistently getting errors with the Lambda test cases, among others. Once HEAD is in a better state, I can add the updates.
from xstream.
Just as a side note, master builds for me cleanly using Java 17 including execution of all unit tests. However, for the next two weeks I am offline, so don't expect any response for this time.
BTW: Do you have any numbers about the usage of the different major Hibernate versions? O simply wonder, what XStream 1.5 should support. 3+4 are probably completely out of scope...
from xstream.
Okay, I can confirm that everything builds and passes tests with Java 17. I think I was using Java 21 instead, which does not build successfully. Please note that OpenJDK 17 is successful, but Oracle JDK 17 is not.
It should be easy to support all major hibernate versions. The code can try for 6 first, and if it fails, fall back to 3/4.
from xstream.
Sorry for the delay, I have this on my radar, but I am currently still overloaded...
from xstream.
Related Issues (20)
- How to set byte array not to do conversion?Thanks. HOT 1
- Unmodifiable Lists converter HOT 1
- how both text and sub tags exist HOT 3
- DomReader: slow performance $O(n^2)$ when deserialize on millions of elements to list HOT 3
- B
- Is there any annotations can support both attribute and sub tags HOT 1
- Support Record Classes HOT 1
- com.thoughtworks.xstream.core.util is not exported in OSGI manifest HOT 2
- Avoid SimpleDateFormat
- Maven errors with java 21 HOT 1
- Problem of TreeSet/TreeMap HOT 4
- The vulnerabilities database NVD only finds xstream component with VENDOR= xstream_project HOT 1
- Deserializing large files is slow on low-performance devices HOT 1
- CustomObjectInputStream's readInt throws a cast error if the read data is a Byte. HOT 6
- Alias using serialization proxy pattern ? HOT 2
- Posting/verifying signing keys used for artifacts in Maven Central? HOT 2
- xstream 1.4.4 moving from Oracle Java 1.8 to OpenJDK 1.8 HOT 1
- info required for compatible version with openjdk21 HOT 1
- Warning of use of Unsafe in JDK 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xstream.