java


using java in controller and slick


I want to use java in my playframework controller.
And Want to use slick for persisting data with slick.
I have the evolutions and all ready and slick mapping to a model as well but how to access the model with java?
class processDTO #Inject() (protected val dbConfigProvider: DatabaseConfigProvider) extends HasDatabaseConfigProvider[JdbcProfile]
with ProcessTemplatesComponent {
import driver.api._
private val processTemplates = TableQuery[ProcessTemplates]
def getAll(): Future[List[ProcessTemplatesModel]] = db.run { processTemplates.to[List].result }
}
Well....
YourScalaClass.scala
pakcage yourscalapackage
class YourScalaClass(s: String) {
def doSomethingAndReturnString(): String = "omg :: " + s
}
YourJavaClass.java
package yourjavapackage;
import yourscalapakcage.YourScalaClass;
public class YourJavaClass {
public void do() {
YourScalaClass ysc = new YourScalaClass("lol");
String str = ysc.doSomethingAndReturnString();
System.out.println(str);
}
}

Related Links

ListView doesn't work in Android Studio
How to stop tabs from being recreated on each activity call
ScrollBar empty in JScrollpane : no knob [duplicate]
Android confused implementing in app billing?
Finding a irreducible fraction
Input of different data types seperated by a space
Android ensure HTTP response arrives
how to find a character in a text file and save the word after that character to another file
How to display clicked listview item in another activity
Java language spec: LambdaExpression in Java ConditionalExpression
Asynchronous service calls using WebServiceTemplate
JDBC Large Fetch Size and Small Result Set performance
JPA cascade not inserting foreign key
no matching handler method found when upgrading from spring mvc 3.0.7-RELEASE to 4.1.7-RELEASE
buttons inside the drawerLayout dont work
Generic container factory

Categories

HOME
log4j
vbscript
smarty
layout
lodash
session
vmware
bpmn
webstorm
jsp-tags
rsync
sqlite-net-extensions
yahoo-oauth
dxl
sql-server-2016
ebean
serverspec
echarts
acquia
uber-api
portia
paradox
google-translate
floating-action-button
event-handling
systemc
telephony
after-effects
physics-engine
telerik-reporting
url-scheme
react-css-modules
bootstrap-material-design
elasticsearch-ruby
ejabberd-module
dbclient
compatibility
jspm
newline
delicious-api
socialengine
google-rich-snippets
yadcf
winrt-xaml-toolkit
asset-pipeline
suricata
simplexml
espeak
mixture-model
azure-ml
dynamic-reports
core-plot
http-live-streaming
ibpy
fakeiteasy
auto-update
parentheses
dds
tizen-native-app
git-diff
nstextview
knpmenubundle
spring-cache
webdriverjs
account-kit
synchronous
yt-project
root-framework
nested-sets
xcb
setuptools
ado.net-entity-data-model
file-writing
two-factor-authentication
browser-link
vhd
xna-4.0
browser-bugs
myo
ami
proj4js
angularjs-ng-click
cdt
android-nested-fragment
p4java
srs
mcts
c18
ivyde
sitemesh
soundtouch
cos
wsdl-2.0
broken-links
nsobject
ecl
krl
lpeg
radcombobox
site.master
revisions
zend-tool
yagni
defensive-programming
ubuntu-9.04

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App