Delivery reports about your e-mail
by Post Office
The original message was received at Fri, 25 Aug 2017 14:15:25 +0800
from lists.jboss.org [33.132.26.169]
----- The following addresses had permanent fatal errors -----
<hibernate-dev(a)lists.jboss.org>
8 years, 4 months
DTO Projection support for native queries?
by Arnold Gálovics
Hi all,
I'm particularly interested in the usecase when you want to have a DTO
projection from a native query. Currently as far as I know this is not
supported through the JPA API.
If I say entityManager.createNativeQuery("...", SomeDTO.class) Hibernate
says SomeDTO is not an entity, at least that's what I remember.
Now I implemented the support for the Tuple type for native queries, so
implementing the support for DTO projections shouldn't be an issue.
Is there any reason why this is not supported yet?
Thanks in advance!
Best,
Arnold
8 years, 4 months
[ORM] About making delegating implementations abstract
by Guillaume Smet
Hi,
While updating OGM to use ORM 5.2, I found out that the delegating
implementations of a few classes are missing methods:
- AbstractDelegatingSessionBuilder
- AbstractDelegatingSessionFactoryBuilder
It stayed unnoticed because the classes are abstract so they don't complain
about missing methods.
Not sure what to do about this. At least one implementation of this sort of
things is not abstract
- SessionDelegatorBaseImpl - and, apparently, it allowed to detect missing
methods.
1/ Should we make all these classes not abstract even if their names make
it clear they should be?
2/ Another way to track it would be to have implementations of these
abstract classes in the tests. Even unused, it would break the build and
warn about this issue.
I'm more in favor of 2/ but I thought I might as well ask.
(I am preparing a PR to update these classes and also fix the hierarchy by
introducing a type parameter where required)
--
Guillaume
8 years, 4 months
Empty composites and embeddable containing an embeddable
by Gail Badner
If an embeddable contains an embeddable, and the outer embeddable is
instantiated due to hibernate.create_empty_composites.enabled=true, should
the inner embeddable be instantiated as well?
Currently, the inner embeddable is not instantiated. I am guessing that it
should be. I just wanted to make sure before creating a jira and fixing.
Thanks,
Gail
8 years, 4 months