I mentioned that I would post the final code once I worked out all the
bugs, so here is what I came up with:
object SampleType extends SampleType with LongKeyedMetaMapper
[SampleType] {
override def dbTableName = "sample_type" // define the DB table name
val choices = SampleTypeList.names
d
I'm working on some Mapper stuff right now and one thing I miss is true
foreign key mapping with constraints and cascades. My gut is that we should
be able to add this for DBs that support it, but do you see any issues with
the concept?
Derek
On Fri, Feb 20, 2009 at 12:41 PM, David Pollak <
feede
Those are both helpful pointers. I'm working out the details right
now, I'll post my code as soon as I get it all worked out so that
others can use it.
Thanks again,
David
On Feb 20, 2:41 pm, David Pollak
wrote:
> In your meta mapper, if you override dbAddTable to return Full[() => Unit],
> tha
In your meta mapper, if you override dbAddTable to return Full[() => Unit],
that function will be called after all the modifications have been made to
the tables, if your table was added as part of Schemifier's changes.
On Fri, Feb 20, 2009 at 9:18 AM, DavidV wrote:
>
> I wondering how to popula
Your tables will be created during the call to Schemifier.schemify.
If you want to add data to the tables, your best bet is to do so in
Boot.scala after the call to schemify.
--j
On Fri, Feb 20, 2009 at 9:18 AM, DavidV wrote:
>
> I wondering how to populate rows of a DB table upon it's creatio