[Pljava-dev] New in PL/Java github head: UDT annotations

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To:
Subject: [Pljava-dev] New in PL/Java github head: UDT annotations
Date: 2015-10-20 22:08:51
Message-ID: 5626BB73.4070704@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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(at)lists(dot)pgfoundry(dot)org
http://lists.pgfoundry.org/mailman/listinfo/pljava-dev

Browse pljava-dev by date

  From Date Subject
Next Message Chapman Flack 2015-10-28 03:47:27 more re: possible pljava / pgjdbc / pgjdbc-ng code sharing
Previous Message Chapman Flack 2015-10-10 21:38:24 Re: [Pljava-dev] PL/java kills unicode chars?