generateGsXml - GigaSpaces CLI

  GigaSpaces 5.X

Documentation Home
Quick Start Guide
Release Notes

Previous release

  Search Here
Searching GigaSpaces Platform 5.X Documentation

                                               

Summary: Converts a Java class into a *gs.xml mapping file.

Syntax

gs> generateGsXml [variable [value]]

Description

Converts a Java class into a *gs.xml mapping file, which basically represents the POJO meta data (used by the system to convert a POJO to and Entry).

The same tool is used to generate gs.xml mapping files out of hibernate .hbm mapping files.

Options

Option Description Value Format
beanName The bean (POJO) name. If isHibernate is false this option is mandatory.  
outputDir The output directory for the generated gs.xml mapping files – mandatory option.  
isHibernate Indicates whether to generate gs.xml files from all *.hbm hibernate files in the classpath.
Default value is false.
 
mappingType The mapping type can be a space value or a map value. Default value is space.  
isFifo Indicates whether to use FIFO for all beans. Default value is false.  
isPersist Indicates whether to use a persistent for all beans. Default value is true.  
isReplicate Indicates whether to use replicable for all the beans. Default value is true.  
hibernateConfigFile The hibernate configuration file if isHibernate is true. Default value is /hibernate.cfg.xml.  
overrideFile Indicates whether to override an existing file with the same file name. Default value is false which means a new file is created using the .new suffix.  
inheritIndexes Boolean value:
  • true – takes the declared indexes that are set to true, and all of their superclasses into account.
  • false – takes the instance's indexes into account. If its indexes are false, take the first superclass that contains indexes that are true into account.
    Default value is true.
 
help / h Prints help – the command's usage and options.  

Example

generateGsXml -beanName com.j_spaces.examples.hellospacepojo.Employee  -outputDir D:\dev\gigaspaces
generateGsXml -isHibernate true  -outputDir D:\dev\gigaspaces\ -hibernateConfigFile hibernate.cfg.xml

Wiki Content Tree


Your Feedback Needed!

We need your help to improve this wiki site. If you have any suggestions or corrections, write to us at techw@gigaspaces.com. Please provide a link to the wiki page you are referring to.

Labels

 
(None)