Question

I'm having a problem with Play 2.0 versions. I need to use anorm's new getAliased method but it's not found:

value getAliased is not a member of anorm.MetaData

Meanwhile, it was added in this commit: https://github.com/playframework/Play20/pull/370

My plugins.sbt says the following:

addSbtPlugin("play" % "sbt-plugin" % "2.0.4")

Why my code is not compiled if the corresponding library code was pushed to master Play 2.0 4 months ago?

My code, just for reference:

MetaData(null).getAliased("")

Was it helpful?

Solution

I think that you are making a mistake: the pull request that you mention has been pushed to the master branch, but not in the 2.0.x branch.

You can see in the 2.0.4 version of the SqlParser.scala file that the getAliased() method does not exist : https://github.com/playframework/Play20/blob/2.0.4/framework/src/anorm/src/main/scala/SqlParser.scala

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top