Sujet : Re: VMS x86-64 database server
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 12. Jul 2025, 00:35:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <104s736$1o14i$12@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 10 Jul 2025 20:29:56 -0400, Arne Vajhøj wrote:
You can save a lot of code by using ORM.
Example (Groovy and JPA):
jpadata = em.createQuery("SELECT DISTINCT o FROM OrdersJPA AS o JOIN
FETCH o.orderLines ol", OrdersJPA.class).getResultList()
Gives you a list of order objects that each has a list of order lines
objects.
I thought the whole point of an ORM was to get away from having to hand-
construct SQL queries. And yet you have done exactly that.