Corda is an open source blockchain project, designed for business from the start. Only Corda allows you to build interoperable blockchain networks that transact in strict privacy. Corda's smart contract technology allows businesses to transact directly, with value.
Go to file
josecoll f8ad5c9d10 Vault Query Service JPA implementation (#840)
* Vault Query Service API implementation using JPA Hibernate

Added queryBy(QueryCriteria) Vault API and Junit tests.

Minor cosmetic API changes following rebase.

Fixes following rebase from master

Upgraded to requery 1.3.1

WIP - removed 'latestOnly' from LinearStateQueryCriteria

WIP - CommercialSchemas V2, V3, V4 testing

WIP - sort out generics handling.

WIP - most general queries completed.

WIP - join queries, contractStateType derivation

WIP - refactoring Requery

WIP - refactored VaultService to extract a VaultQueryService interface (and associated Requery implementation).

WIP - HibernateVaultQuery implementation

WIP - Re-structured all Schema definitions (requery/jpa) and make Hibernate Config reusable.

WIP - Multi-version schema testing, hibernate query testing.

WIP - Custom Criteria and Fungible Criteria impl & testing.

WIP - Kotlin Comparable Generics error

WIP - Party queries all working now

WIP - All VaultQueryTests now working (refactored for AND / OR composition)

WIP - added schema registration in CordaPluginRegistry to enable custom vault queries on arbitrary schemas.

WIP - added new default Sort NULL order to be NONE + added lots more tests for Logical Operator testing.

Mostly identity fixes following rebase from master.

Exception handling and public API cleanup in prep for PR.

Additional tests for Logical Operators; additional tests for NULLS sort ordering; additional logging;

Additional parser to handle Nullable attribute values; added Unary and Collection logical expression handlers

Lots of cleanup: participants; trackBy interfaces; additional fungible tests; parser cleanup and improved support for Java

Removed all traces of Requery implementation.

Further minor cleanup and Junit test fix.

Final identity and schema related identity clean-up.

Revert unrelated changes.

PR review updates: blank lines, isRelevant.

Fixed wiring of updatesPublisher for dynamic trackBy queries.

PR review changes: multi-versioned schema samples and associated dummy contracts moved to test packages.

Fixed problem with sorted queries (not specifying any filterable criteria).

PR review: minor updates to address RP comments.

Typesafe custom query criteria

Cleanup: remove redundant tests.

Further clean-up and make all Java test work successfully.

Remove debugging print statements.

Rebased from master - changes required due to DealState module change.

fixed broken assertion caused by DealState ordering change (different package)

Fixed transaction demarcation issue causing "java.lang.IllegalStateException: Was not expecting to find existing database transaction on current strand"

trackBy() now filters on ContractType and StateStatus (CONSUMED, UNCONSUMED, ALL)

Added tests to exercise RPCOps trackBy and queryBy (RPC smoke test and CordaRPCOps)

Added additional @CordaSerializable annotations.

Updated documentation and referenced sample code.

Added deprecation annotations.

Re-added missing deprecation annotation.

Hibernate debug logging is now configurable and disabled by default.

Introduced common Sort attributes based on the node schemas.

Completely removed NULL_HANDLING sort parameter as this is not supported in JPA.

Revisited and fixed usage of @CordaSerializable.

* Minor fix following rebase from master.

* Remove blank line as per RP PR feedback request.

* Minor Java documentation and example clean-up.

* Disable BFT Notary Service tests.
2017-06-22 10:35:49 +01:00
.idea Moved Driver.kt to net.corda.testing.driver in the test-utils module 2017-06-14 15:12:39 +01:00
buildSrc Upgraded both guava and guava-testlib to 21.0 and made sure they share the same version variable 2017-03-24 17:17:36 +00:00
client Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
config Correct ISO country code in names 2017-06-21 14:04:22 +01:00
cordform-common Remove nearestCity from node configuration. (#721) 2017-05-31 16:07:13 +01:00
core Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
docs Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
experimental Move all advanced finance types into finance module. 2017-06-16 11:19:24 +01:00
finance Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
gradle/wrapper Upgrade to Kotlin 1.0.7 and Gradle 3.4.1 (#402) 2017-03-22 12:05:49 +00:00
gradle-plugins Corda publications and JARs now have cord or corda at the start. (#749) 2017-06-06 15:05:47 +01:00
lib Upgrade Quasar to 0.7.6 and fix an exception handling bug in SMM that it revealed (if an exception was thrown immediately on protocol startup we let it leak instead of capturing it in the future. 2016-08-17 14:43:45 +01:00
node Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
node-api Corda publications and JARs now have cord or corda at the start. (#749) 2017-06-06 15:05:47 +01:00
node-schemas Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
samples Correct ISO country code in names 2017-06-21 14:04:22 +01:00
smoke-test-utils Fixes relating to testing flows and services. 2017-06-06 15:22:43 +01:00
test-utils Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
tools Correct ISO country code in names 2017-06-21 14:04:22 +01:00
verifier driver, node: Allow in-process starting of nodes, add a couple of node performance tests 2017-06-19 13:45:48 +01:00
webserver Move Web API from CordaPluginRegistry to new class WebPluginRegistry (#864) 2017-06-20 15:29:35 +01:00
.gitignore Fix tests that check ports are bound/unbound (#756) 2017-05-31 17:12:25 +01:00
build.gradle Vault Query Service JPA implementation (#840) 2017-06-22 10:35:49 +01:00
constants.properties Update BC to 1.5.7 as it has a fix that reduces timing side-channel attacks on EC operations 2017-06-21 13:42:27 +01:00
CONTRIBUTING.md Addressed some review comments about the license and readmes. 2016-11-22 11:56:46 +00:00
gradle.properties Enable Kotlin incremental compilation in Gradle 2017-01-06 16:39:01 +01:00
gradlew Upgrade to Kotlin 1.0.7 and Gradle 3.4.1 (#402) 2017-03-22 12:05:49 +00:00
gradlew.bat Upgrade to Kotlin 1.0.7 and Gradle 3.4.1 (#402) 2017-03-22 12:05:49 +00:00
LICENSE Update LICENSE 2017-03-06 15:33:29 +01:00
README.md Added a TC build icon and link to readme. 2017-06-15 16:53:29 +01:00
settings.gradle Fixes relating to testing flows and services. 2017-06-06 15:22:43 +01:00
TRADEMARK Amended wording of trademark notice per advice from legal counsel. 2016-11-29 21:11:09 +00:00

Corda

Corda

Corda is a decentralised database system in which nodes trust each other as little as possible.

Features

  • A P2P network of nodes
  • Smart contracts
  • Flow framework
  • "Notary" infrastructure to validate uniqueness of transactions
  • Written as a platform for distributed apps called CorDapps
  • Written in Kotlin, targeting the JVM

Getting started

Firstly, read the Getting started documentation.

Next, use the following guides to set up your dev environment:

  • If you are on Windows use this getting started guide which also explains through how to run the sample apps.

  • Alternatively if you are on Mac/Linux, watch this brief Webinar which walks through getting Corda, installing it, building it, running nodes and opening projects in IntelliJ.

After the above, watching the following webinars will give you a great introduction to Corda:

Webinar 1 Introduction to Corda

Richard Brown, R3 Chief Technology Officer, explains Corda's unique architecture, the only distributed ledger platform designed by and for the financial industry's unique requirements. You may want to read the Corda non-technical whitepaper as pre-reading for this session.

Webinar 2 Corda Developers Tutorial

Roger Willis, R3 Developer Relations Lead, provides an overview of Corda from a developers perspective and guidance on how to start building CorDapps. You may want to view Webinar 1 - Introduction to Corda as preparation for this session. NB. This was recorded for the M5 release.

Building on Corda

To build your own CorDapps:

  1. Clone the CorDapp Template repository
  2. Read the README (IMPORTANT!)
  3. Read the Writing a CorDapp documentation

To look at the Corda source and run some sample applications:

  1. Clone this repository
  2. To run some sample CorDapps, read the running the demos documentation
  3. Start hacking and contribute!

Development State

Corda is under active development and is maturing rapidly. We are targeting production-readiness in 2017. The API will continue to evolve throughout 2017; backwards compatibility not assured until version 1.0.

Pull requests, experiments, and contributions are encouraged and welcomed.

Background

The project is supported by R3, a financial industry consortium, which is why it contains some code for financial use cases and why the documentation focuses on finance. The goal is to use it to construct a global ledger, simplifying finance and reducing the overheads of banking. But it is run as an open source project and the basic technology of a peer-to-peer decentralised database may be useful for many different projects.

Contributing

Please read here.

License

Apache 2.0

Acknowledgements

YourKit

YourKit supports open source projects with its full-featured Java Profiler.

YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.