Tools, FAQ, Tutorials:
CTO Language Primitive Data Types
What are CTO Language Primitive Data Types?
✍: FYIcenter.com
CTO Language Primitive Data Types built-in system data types
that you can use them to build new data types
Currently, there are 6 primitive data types supported:
Here is an example CTO file, models/order.cto, showing how Primitive Data Types can be used to declare an "asset" data type:
/* Copyright (c) FYIcenter.com */ namespace com.fyicenter.hyperledger.order asset Order identified by orderId { o String orderId o String product default='Alice\'s Adventures in Wonderland' o Integer quantity default=1 o Double price default=99.99 o DateTime expiration default='2099-12-31T23:59:59.999999+05:30' o Boolean isTaxable default=true o Long serialNumber default=999999999 }
Notice that literals of "String" and "DateTime" types must be quoted as "..." or '...'.
⇒ Business Network JS Scripting Language
2019-04-22, 249👍, 0💬
Popular Posts:
How To Add Column Headers to a Table? If you want to add column headers to a table, you need to use ...
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...