Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

So I'm new in scala-play world. And just got a look at Anorm and it seemed quite cool. But I was wondering what is the proper way to use it? I guess we shouldn't just put pseudo-SQL everywhere in our code..

I took a look at the website and there is a tutorial explaining some stuff, but it is not said how to actually effectively use it.

Can anyone please share their 5cents?

share|improve this question

closed as not a real question by Robert Harvey, Thomas Owens, Jonas, Walter, Anna Lear Sep 25 '11 at 0:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What do you mean by "proper?" –  Robert Harvey Jul 21 '11 at 16:19

2 Answers 2

Anorm doesn not use "pseudo-SQL", it's real SQL. And you should not put your SQL everywhere in your code. You should create a Data Access Object, that contains all methods that access the database. In this sense Anorm is not different from using e.g. JDBC.

share|improve this answer

I suggest you try this question at play framework google group

there are many play users using that technology (which is quite new, by the way) and are willing to share their experience

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.