Hi Reza I think a scenario based PoC can be done and check the outcomes and make fixes if it doesn’t represent the data in a desired way. Generally in a business app, most of the times the Java Records will be as DTOs as you said. Regards Sankarraman V 
Altius Digital New 10/3 Old 18/3 Devanathan Colony West Mambalam Chennai + 91 9380458402 Email: Sankarraman.vedagiri@xxxxxxxxxxxxxx From: jpa-dev-bounces@xxxxxxxxxxx <jpa-dev-bounces@xxxxxxxxxxx> On Behalf Of reza_rahman Sent: 24 April 2020 19:57 To: jpa developer discussions <jpa-dev@xxxxxxxxxxx> Subject: Re: [jpa-dev] Java Records Alignment? Do you or anyone else want to work with me on an analysis from the end user standpoint? I don't think this is that straightforward and will require some level of scenario outlining. In particular, it is still unclear to me how Java Records fit into an overall application domain model vis-a-vis JPA entities and embeddables. It is possible the only use case for Java Records are as DTOs, in which case a possible set of enhancements could be just some relatively simple converters. There may even be space here for a vendor neutral small utility library and nothing in JPA itself (maybe part of DeltaSpike). Jakarta EE Ambassador, Author, Blogger, Speaker Please note views expressed here are my own as an individual community member and do not reflect the views of my employer. Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone -------- Original message -------- Date: 4/24/20 1:29 AM (GMT-05:00) Subject: Re: [jpa-dev] Java Records Alignment? Aren't single-valued records somehow already supported by writing custom AttributeConverters? For multi-valued records, a enhancement proposal for AttributeConverters exists: On 23 Apr 2020 12:57 a.m., Lukas Jungmann <lukas.jungmann@xxxxxxxxxx> wrote: Hi,
On 4/18/20 8:20 PM, reza_rahman wrote: > Lukas, > > I just wanted to quickly ask - is it sensible to file an issue on Java > Records alignment with JPA?
Yes, it is, feel free to go ahead with that.
thanks, --lukas
If it is, I will see if someone else from > the community can research this and file a preliminary issue. My IP > chain with Microsoft and Jakarta EE is still murky, so it is best I > don't enter too many details too frivolously myself. > > Reza Rahman > Jakarta EE Ambassador, Author, Blogger, Speaker > > Please note views expressed here are my own as an individual community > member and do not reflect the views of my employer. > > _______________________________________________ > jpa-dev mailing list > jpa-dev@xxxxxxxxxxx > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jpa-dev > _______________________________________________ jpa-dev mailing list jpa-dev@xxxxxxxxxxx To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jpa-dev
|