Message-ID: <5626BB73.4070704@anastigmatix.net> Date: Tue, 20 Oct 2015 18:08:51 -0400 From: Chapman Flack MIME-Version: 1.0 Subject: [Pljava-dev] New in PL/Java github head: UDT annotations Content-Type: text/plain; charset="us-ascii" 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 Pljava-dev@lists.pgfoundry.org http://lists.pgfoundry.org/mailman/listinfo/pljava-dev