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(“”)
I think that you are making a mistake: the pull request that you mention has been pushed to the
masterbranch, but not in the2.0.xbranch.You can see in the 2.0.4 version of the
SqlParser.scalafile that thegetAliased()method does not exist : https://github.com/playframework/Play20/blob/2.0.4/framework/src/anorm/src/main/scala/SqlParser.scala