问题
Is there any sort of "How-To" for playORM? I'm just starting to work with it, and haven't been able to get any farther than importing the Ant build file into Eclipse. I didn't see anything like a readme in the unpacked tarball, besides a file in the examples/
directory that says "This is the examples directory" and a feature list in the main directory. Is there anything I can look at to get started using playORM, or is it just meant to be trial and error?
回答1:
Very sorry, we are working on documentation. Until then, here are the steps
- check out playOrm
- run build or build.bat to generate parser code
- import into eclipse
- right click on the com.alvazan.test folder and choose run As -> Junit test (all tests should pass)
- Modify FactorySingleton.java (change IN_MEMORY to CASSANDRA and change seeds if desired)
- repeat running the test suite again if you like so you can play with
- NOW that all tests passing and you know that is all and well, EVERY test is the perfect example and the bootstrap is FactorySingleton so you can look at it's code to get started
LAST NOTE: Your jar requires a file nosql.Persistence or PlayOrm(just like hibernate) will not scan your jar for classes.
later, Dean
回答2:
Documentation is now available at https://github.com/deanhiller/playorm/wiki
来源:https://stackoverflow.com/questions/12574027/getting-started-with-playorm