fabric-samples/chaincode/fabcar/java
Stefan Obermeier 5e5d2c8e01
Update java chaincode to be compatible with doc and other implementations (#149)
* Use numbers without leading zeroes for key

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>

* Update chaincode to be compatible with doc.

E.g. Return key of the queried record

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>

* Clean up

Use always whitespaces to indent the start of the line
Remove unnecessary whitespaces

Signed-off-by: Stefan Obermeier <scray@stefan-obermeier.de>
2020-04-07 09:09:10 +02:00
..
config/checkstyle [FAB-16607] Update FabCar to reflect CC updates 2019-09-19 13:26:51 +01:00
gradle/wrapper [FAB-6415] Java 11 support for FabCar sample 2019-09-24 09:41:02 +01:00
src Update java chaincode to be compatible with doc and other implementations (#149) 2020-04-07 09:09:10 +02:00
.gitignore [FAB-15213] Add Java FabCar sample contract 2019-07-29 11:59:30 +00:00
build.gradle [FAB-17447] Update to 2.0.0 Libraries 2020-01-29 00:26:12 -05:00
gradlew [FAB-6415] Java 11 support for FabCar sample 2019-09-24 09:41:02 +01:00
gradlew.bat [FAB-6415] Java 11 support for FabCar sample 2019-09-24 09:41:02 +01:00
README.md [FAB-15213] Add Java FabCar sample contract 2019-07-29 11:59:30 +00:00
settings.gradle [FAB-6415] Java 11 support for FabCar sample 2019-09-24 09:41:02 +01:00

Java FabCar contract sample

The directions for using this sample are documented in the Hyperledger Fabric Writing Your First Application tutorial.

The tutorial is based on JavaScript, however the same concepts are applicable when using Java.

To install and instantiate the Java version of FabCar, use the following command instead of the command shown in the Launch the network section of the tutorial:

./startFabric.sh javascript

NOTE: After navigating to the documentation, choose the documentation version that matches your version of Fabric