Yanming Zhou

Results 241 comments of Yanming Zhou
trafficstars

> You mean like a [CDI `TypeLiteral`](https://jakarta.ee/specifications/cdi/2.0/apidocs/?javax/enterprise/util/TypeLiteral.html), right? Yes. > But what is the usecase here? For use with `in` conditions? Or something else? Not `in` but `equal`. ```java @Entity...

> I see. So I suppose this: > > ``` > List list; > ``` > > _is_ possible in standard JPA with an `AttributeConverter`. Hibernate will map it to...

>> that would be a breaking change Let's discuss the real impact of this change, I think it's a enhancement instead of breaking change. >> the method would need to...

"as concrete as possible" as title said, If it's not possible then fall back to current behavior.

> but start returning Object.class as soon as there is another subclass passing a different type as type variable? I'm not sure I understand what you means, for other subclass...

> I guess you mean should return `HouseOwner`? Yes, It's a typo. > An attribute is declared by a managed type and clearly `OwnerContainer` declares the `owner` attribute. This means...

For static metamodel, It should generated like this: ```java @StaticMetamodel(OwnerContainer.class) public abstract class OwnerContainer_ { public static volatile SingularAttribute owner; } @StaticMetamodel(Book.class) public abstract class Book_ { public static volatile...

I've tested with EclipseLink 3.0.4, It does return the expected `Owner.class` instead of erased type `Object.class`, so I guess there is no technical limitation you worried. I think the spec...

IMO, there is no need to introduce a new method `getActualAttribute()`, It means I want the actual attribute if I called `getAttribute()`, I cannot imagine which use case would want...

> So I believe—but I'm not sure, without digging more deeply—that we actually permit the provider to throw `OptimisticLockException` synchronously from `persist()` or `remove()`. Usually that happens from `flush()` but...