A sample Force.com / Database.com CRUD application using Spring MVC
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sampledata
src
.gitignore
Procfile
README.md
pom.xml

README.md

A Music Library for Database.com

This small sample application is a music library with an album, artist and genre entity.

For more information on how to use the Java SDK, please read our documentation at http://forcedotcom.github.com/java-sdk/force-sdk-overview

Set the connection URL for Database.com

This application has a persistence unit called forceDatabase. The Database.com JPA provider will look for a connection URL in an environment variable called FORCE_<UPPERCASE_PERSISTENCE_UNIT_NAME>_URL; in this case, FORCE_FORCEDATABASE_URL.

For Linux, set this variable by running the following command after replacing the user and password with your own username and password. Remember to append your security token to the password and to enclose the URL in quotes.

export FORCE_FORCEDATABASE_URL="force://login.salesforce.com;user=scott@acme.com;password=tigerVXoAIbgYSMOhSEVtcGxgt4mRP"

For Windows, set this variable by running the following command after replacing the user and password with your own username and password.

set FORCE_FORCEDATABASE_URL=force://login.salesforce.com;user=scott@acme.com;password=tigerVXoAIbgYSMOhSEVtcGxgt4mRP

Please read more documentation at http://forcedotcom.github.com/java-sdk/force-sdk-overview

Content Attribution

Freebase CC-BY

The sampledata directory contains album, artist and genre data from Freebase.com, licensed under CC-BY. This content includes parts from Wikipedia, licensed under the GFDL.