Skip to content

Commit e9ae0be

Browse files
committed
add comments
1 parent f5e2499 commit e9ae0be

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/samples-java/src/main/java/com/function/AddProductToTwoTables.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
import java.io.IOException;
2424
import java.util.Optional;
2525

26+
/**
27+
* This function uses two SQL output bindings to upsert the product in the request body to the
28+
* Products and ProductsWithIdentity tables.
29+
*/
2630
public class AddProductToTwoTables {
2731
@FunctionName("AddProductToTwoTables")
2832
public HttpResponseMessage run(

samples/samples-java/src/main/java/com/function/GetProductsFromTwoTables.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
import java.util.Optional;
2020

21+
/**
22+
* This function uses two SQL input bindings to get products from the Products and ProductsWithIdentity tables
23+
* and returns the combined results as a JSON array in the body of the HttpResponseMessage.
24+
*/
2125
public class GetProductsFromTwoTables {
2226
@FunctionName("GetProductsFromTwoTables")
2327
public HttpResponseMessage run(

0 commit comments

Comments
 (0)