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
7 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
7 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
7 years, 4 months
Re: [hibernate-dev] Ready for JDK 9 ?
by Rory O'Donnell
Thanks Sanne for the update!
Rgds,Rory
On 11/08/2017 11:31, Sanne Grinovero wrote:
> Hi Rory,
>
> Thanks for all updates!
>
> we have several projects under the Hibernate umbrella, so our
> experience varies a bit.
>
> Let me start with the good news: both Hibernate Validator (Reference
> implementation of Bean Validation) and Hibernate Search (Hibernate ORM
> integration with Apache Lucene) seem to work just fine.
> We had to disable various integration tests as several other platforms
> and tools we use for more extensive testing aren't yet at the same
> level of compatibility, or possibly we need to still figure out the
> right combination of updates and JVM flags to get them working: we're
> in the process of refining that but it's not worrying as it's about
> running different components, our libraries work fine.
>
> Our "flagship project" Hibernate ORM seems like in good shape as well
> but it will still take us some time to be able to give a thourough
> answer, as many more essential build and testing tools are still
> affected by compatibility issues. So for this one we currently can't
> run the core testsuite which leaves us partially in the dark, but I'm
> optimistic as several key functional tests of the Hibernate Search
> testsuite indirectly rely on Hibernate ORM as well and they all work
> just fine.
>
> All build issues we found so far are in the "expected changes"
> cathegory so we're not having bugs to report to the OpenJDK; we might
> have to chase several of these tool maintainers. We'll keep working on
> this and let you know.
>
> Thanks,
> Sanne
>
>
> On 8 August 2017 at 11:07, Rory O'Donnell <rory.odonnell(a)oracle.com> wrote:
>> Hi Sanne,
>>
>> Thank you very much for all your testing of JDK 9 during its
>> development! Such contributions have significantly helped shape and
>> improve JDK 9.
>>
>> Now that we have reached the JDK 9 Final Release Candidate phase [1] , I
>> would like to ask if your project can be considered to be 'ready for JDK
>> 9', or if there are any remaining show stopper issues which you've
>> encountered when testing with the JDK 9 release candidate.
>>
>> JDK 9 b181 is available at http://jdk.java.net/9/
>>
>> If you have a public web page, mailing list post, or even a tweet
>> announcing you project's readiness for JDK 9, I'd love to add the URL to
>> the upcoming JDK 9 readiness page on the Quality Outreach wiki.
>>
>>
>> Looking forward to hearing from you,
>> Rory
>>
>> [1] http://openjdk.java.net/projects/jdk9/
>>
>> --
>> Rgds,Rory O'Donnell
>> Quality Engineering Manager
>> Oracle EMEA , Dublin, Ireland
>>
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA, Dublin,Ireland
7 years, 4 months