morellik / play-morphia Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
@morellik I used @Inject private UserRepository userRepository; declaration as per instructions. But I can only access it inside UserController class not UserData class (DTO object for user registration form). I used the same declaration @Inject private UserRepository userRepository inside UserData class but it returns null pointer exception at the runtime. Please help me resolve this issue.
Thanks for upgrading the morphia library but I am unable to compile the project
#Stacktrace
play.sbt.PlayExceptions$CompilationException: Compilation error[package it.unifi.cerm.playmorphia does not exist] at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34) at play.sbt.PlayExceptions$CompilationException$.apply(PlayExceptions.scala:34) at scala.Option.map(Option.scala:146) at play.sbt.run.PlayReload$.$anonfun$taskFailureHandler$1(PlayReload.scala:33) at scala.Option.map(Option.scala:146) at play.sbt.run.PlayReload$.taskFailureHandler(PlayReload.scala:28) at play.sbt.run.PlayReload$.compileFailure(PlayReload.scala:24) at play.sbt.run.PlayReload$.$anonfun$compile$3(PlayReload.scala:51) at scala.util.Either$LeftProjection.map(Either.scala:573) at play.sbt.run.PlayReload$.compile(PlayReload.scala:51)
I performed following steps:
Playorphia.jar
to the projectThis is kind of strange because while importing it.unifi.cerm.playmorphia.MongoClientFactory
in my mongoClientFactory class it's showing me no errors. I can even import it into another class but at the time of compilation it's throwing me above stacks
What mistake I am making here?
It would be nice if you can Publish this to Maven.
Maybe use this https://github.com/arktekk/sbt-aether-deploy
Hi, Thanks for building the morphia plugin. Although when I am trying to integrate this plugin with my play
2.5.X java application I am getting an error saying "private PlayMorphia morphi".
my config/application.config is
playmorphia {
uri="mongodb://127.0.0.1:27017/YourDB"
database="YourDB"
models="models"
mongoClientFactory="controllers.MyMongoClientFactory"
}
and i have created the lib folder under my app folder.
If u get time please revert back.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.