Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Development/DBWS/RestfulComponent/UseCases"
< EclipseLink | Development | DBWS | RestfulComponent
Line 27: | Line 27: | ||
</source> | </source> | ||
− | There are | + | There are three scenarios to consider: |
# the specified database contain the Project's entities | # the specified database contain the Project's entities | ||
# the specified database does <b>not</b> contain the Project's entities | # the specified database does <b>not</b> contain the Project's entities | ||
# meta-data describing the Project's entities is provided through an alternative mechanism | # meta-data describing the Project's entities is provided through an alternative mechanism |
Revision as of 15:42, 17 October 2011
DBRS Use Cases
The DBRS utility starts by reading some initial configuration information:
prompt > DBRSBuilder [-builderFile {path to dbrsbuilder.properties}] -stageDir {path to stageDir}
(if command-line arg -builderFile not present, default to look in current working directory)
prompt > DBRSBuilder running, connected to port 8884 ... Press <Return> to finish
dbrsbuilder.properties:
# builder properties
builder.port=8884
#builder.mode=production
builder.mode=test
builder.test.port=8885
# project properties
project.name=projectname
project.entities=employee, other entities ...
# database properties
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/db
db.user=user
db.pwd=password
db.platform=org.eclipse.persistence.platform.database.MySQLPlatform
logging.level=info
(if command-line arg -builderFile not present, default to look in current working directory)
prompt > DBRSBuilder running, connected to port 8884 ... Press <Return> to finish
dbrsbuilder.properties:
# builder properties
builder.port=8884
#builder.mode=production
builder.mode=test
builder.test.port=8885
# project properties
project.name=projectname
project.entities=employee, other entities ...
# database properties
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/db
db.user=user
db.pwd=password
db.platform=org.eclipse.persistence.platform.database.MySQLPlatform
logging.level=info
There are three scenarios to consider:
- the specified database contain the Project's entities
- the specified database does not contain the Project's entities
- meta-data describing the Project's entities is provided through an alternative mechanism