Default Schema for DefaultConnectionIdentifier

5 views
Skip to first unread message

aw

unread,
Jan 13, 2010, 1:55:20 AM1/13/10
to Lift
I specify my database by specifying a jndiName for
DefaultConnectionIdentifier:

DefaultConnectionIdentifier.jndiName = "jdbc/myOracleDb"

I really need to specify a default schema too... (For Hibernate, I
would specify this in persistence.xml.) Is there a way to specify a
default schema?

aw

unread,
Jan 13, 2010, 7:56:23 PM1/13/10
to Lift
I found DB.globalDefaultSchemaName, but the Schemifier is still
breaking:

java.util.NoSuchElementException: key not found: mytablename
at scala.collection.Map$class.default(Map.scala:169) [scala-
library-2.7.7.jar:na]
at scala.collection.mutable.HashMap.default(HashMap.scala:33)
[scala-library-2.7.7.jar:na]
at scala.collection.Map$class.apply(Map.scala:80) [scala-
library-2.7.7.jar:na]
at scala.collection.mutable.HashMap.apply(HashMap.scala:33)
[scala-library-2.7.7.jar:na]
at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply
$8.apply(Schemifier.scala:193) [lift-mapper-1.1-M8.jar:1.1-M8]
at net.liftweb.mapper.Schemifier$$anonfun$6$$anonfun$apply
$8.apply(Schemifier.scala:193) [lift-mapper-1.1-M8.jar:1.1-M8]
at net.liftweb.mapper.Schemifier$.net$liftweb$mapper$Schemifier
$$using(Schemifier.scala:44) [lift-mapper-1.1-M8.jar:1.1-M8]
at net.liftweb.mapper.Schemifier$$anonfun$6.apply
(Schemifier.scala:193)[lift-mapper-1.1-M8.jar:1.1-M8]
at net.liftweb.mapper.Schemifier$$anonfun$6.apply
(Schemifier.scala:187)[lift-mapper-1.1-M8.jar:1.1-M8]

aw

unread,
Jan 14, 2010, 3:10:24 AM1/14/10
to Lift
OK, I'm not 100% sure what DB.globalDefaultSchemaName is supposed to
do because specifying it broke Schemifier as well as my queries.
Certainly, it sounded like what I needed, but doesn't do what I
expected...

Basically, I am looking for the Lift equivalent to:
hibernate.default_schema

(See section 3.4: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/session-configuration.html
)

Reply all
Reply to author
Forward
0 new messages