public inbox for [email protected]
help / color / mirror / Atom feedFrom: Chapman Flack <[email protected]>
Subject: [Pljava-dev] New in PL/Java github head: UDT annotations
Date: Tue, 20 Oct 2015 18:08:51 -0400
Message-ID: <[email protected]> (raw)
For a couple years it has been possible to generate the SQL
deployment descriptor commands to install functions, just by putting
@Function
above the Java method (and specify details of the function, associated
triggers, etc., in the annotations too, if the defaults aren't quite right).
Now that also works for user-defined types. @BaseUDT in front of a
Java class will generate the SQL for a new PostgreSQL base type built
on the class. @MappedUDT does the same thing for a Java class
corresponding to a PostgreSQL composite type.
Some new examples in the pljava-examples module illustrate it ...
the updated javadocs are on the http://tada.github.io/pljava/ site.
UDTs were the biggest gap remaining between what you could do in
PL/Java at all and what you could use annotations and have the SQL
generated for you to do, so that gap is closed now. The SQL generator
still doesn't know about event triggers/instead-of triggers/triggers
with WHEN clauses, but neither does the rest of PL/Java, yet.
Cheers,
-Chap
_______________________________________________
Pljava-dev mailing list
[email protected]
http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [Pljava-dev] New in PL/Java github head: UDT annotations
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox