jackson-datatype-hibernate icon indicating copy to clipboard operation
jackson-datatype-hibernate copied to clipboard

Add-on module for Jackson JSON processor which handles Hibernate (https://www.hibernate.org/) datatypes; and specifically aspects of lazy-loading

Results 44 jackson-datatype-hibernate issues
Sort by recently updated
recently updated
newest added

In the Hibernate 5 `ReplacePersistentCollectionTest` test suites, changing the Customer class collection fields into eager fetching and commenting the `Assert.assertFalse(Hibernate.isInitialized(customer.getPayments()));` line from the `testReplacePersistentCollection` reproduces the bug clearly. For now,...

Entity structure: public class Containing { @Id private Long id; @OneToMany(mappedBy = "containing", cascade = CascadeType.ALL, orphanRemoval = true) private List contained = new ArrayList(); } public class Containing2 {...

The Hibernate 5 Module should ignore `hibernateLazyInitializer` by default. Jackson is attempting to serialize this, and that results in an error: ``` com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and...

pr-needed
need-test-case

All links to javadoc pages on wiki page are dead - please fix ![image](https://user-images.githubusercontent.com/65784966/127727431-327f0a68-022f-4185-8d9e-c6d41ca8741a.png)

There should be an option to assume that all `ManyToX` and `OneToX` annotation markers are `lazy` to avoid the issue where there are times an EAGER collection will be a...

the `REPLACE_PERSISTENT_COLLECTIONS` work only when `FetchType.LAZY` i have write this [code](https://github.com/ashraf-revo/json-ser) when i debug i found this happen du tho this part which change serlizer from `PersistentCollectionSerializer` to `CollectionSerializer` ![alt...

When `Feature.FORCE_LAZY_LOADING` is enabled, serialising a detached entity that has an non-initialised `PersistentCollection` fails with a `com.fasterxml.jackson.databind.JsonMappingException: failed to lazily initialize a collection of role: ..., could not initialize proxy...

I've noticed that Feature SERIALIZE_IDENTIFIER_FOR_LAZY_NOT_LOADED_OBJECTS works as inteded (serializing attributes from the Hibernate proxy of lazy loaded objects, i.e. identifiers), but wrapped like this: `{ "id" : 1 }` This...

After updating to jackson-datatype-hibernate 2.9.7 (Hibernate 5.1.7 on the classpath) I found that PersistentCollectionSerializer cannot be instantiated when trying to register the module due to a cnfe.. ```java import com.fasterxml.jackson.datatype.hibernate5.PersistentCollectionSerializer;...

More you can find here: http://stackoverflow.com/questions/33194554/two-different-resulting-jsons-when-serializing-lazy-objects-and-simple-objects Guys, I've already find out, what's the problem and solved it with hack, when we try to serialize Hibernate proxy, and isUnwrappingSerializer() is being...