Has anyone made any changes GenericEntity.setAllFields method or the code
underneath it? It no longer works unless the primary key consists only of
String type fields.
This is easy to reproduce, even in the Example Application, by trying to work
with ExampleFeatureAppl records, which have a fromDate as part of the primary
key.
This warning is showing, and the underlying code does not work (on MySQL at
least):
[java] 2010-02-23 21:22:42,706 (http-0.0.0.0-8443-1) [
GenericEntity.java:422:WARN ]
[java] ---- exception report
----------------------------------------------------------
[java] =-=-=-=-=-=-=-=-= Database type warning GenericEntity.set
=-=-=-=-=-=-=-=-= In entity field [ProductFeatureAndAppl.fromDate] set the
value passed in [java.lang.String] is not compatible with the Java type of the
field [java.sql.Timestamp]
[java] Exception: java.lang.Exception
[java] Message: Location of database type warning
[java] ---- stack trace
---------------------------------------------------------------
[java] java.lang.Exception: Location of database type warning
[java] org.ofbiz.entity.GenericEntity.set(GenericEntity.java:422)
[java] org.ofbiz.entity.GenericEntity.set(GenericEntity.java:368)
[java] org.ofbiz.entity.GenericEntity.setAllFields(GenericEntity.java:885)
[java]
org.ofbiz.entity.finder.PrimaryKeyFinder.runFind(PrimaryKeyFinder.java:105)
[java]
org.ofbiz.entity.finder.PrimaryKeyFinder.runFind(PrimaryKeyFinder.java:81)
[java]
org.ofbiz.widget.screen.ModelScreenAction$EntityOne.runAction(ModelScreenAction.java:523)
-David