I must be brain dead.

I created a simple test with postgresql prototypes. An Entity:

prototype:  jodaLocalDate
data type: Custom
External Type: date
Class: org.joda.time.LocalDate
Value Class:  org.joda.time.LocalDate
Value Type:  D
Factory Method: jodaLocalDate
Conversion Method: jodaLocalDate
Init Argument:   Date

I am using migrations and EOModeler created:

ERXMigrationTable testBedTableTable = 
database.newTableNamed("t_test_bed_table");
testBedTableTable.newDateColumn("c_a_joda_date", false);
testBedTableTable.newIntegerColumn("id", false);
testBedTableTable.create();
testBedTableTable.setPrimaryKey("id");

which is beautiful:
(from psql:)

testbed=# \d t_test_bed_table
                           Table "public.t_test_bed_table"
    Column     |  Type   |                         Modifiers                    
      
---------------+---------+------------------------------------------------------------
 c_a_joda_date | date    | not null
 id            | integer | not null default 
nextval('t_test_bed_table_seq'::regclass)
Indexes:
    "t_test_bed_table_pk" PRIMARY KEY, btree (id)

and I inserted:

testbed=# insert into t_test_bed_table (c_a_joda_date) VALUES ('2-28-2011');
INSERT 0 1
testbed=# select * from t_test_bed_table;
 c_a_joda_date | id 
---------------+----
 2011-02-28    |  1
(1 row)

so far so good:

I did a wonder fetch and I get this error:

TestBedTable.fetchAllTestBedTables(theEC);

Class org.joda.time.LocalDate does not implement method jodaLocalDate

Am I missing something (meaning am I supposed to import something specific)?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to