(0001574)
spoty
11-05-06 07:17
edited on: 11-05-06 07:49
|
This is a stupid user problem. Postgresql requires quoting of identifiers to get mixed-case support.
My table name is nav.NfdcFacilities and this fixed the problem:
@table(name="nav.\"NfdcFacilities\"")
It also requires quoting of @column(name="..."), because of the same complaint during creating of the bean implementation.
However, this creates other problems, because when the bean is compiled, the quotes are imbedded in the strings for performing database operations within the bean implementation. See following example of the compiler error generated:
/Users/catkins/resin/resin-pro-3.1.s061026/webapps/nav/WEB-INF/work/pre-enhance/temp/NfdcFacilitiesBean__ResinExt.java:181:
';' expected
String sql = "select o."Type" from nav."NfdcFacilities" o where o."SiteNumber"=?";
^
/Users/catkins/resin/resin-pro-3.1.s061026/webapps/nav/WEB-INF/work/pre-enhance/temp/NfdcFacilitiesBean__ResinExt.java:268:
';' expected
String sql = "insert into nav."NfdcFacilities" ("SiteNumber", "Type") values (?, ?)";
^
/Users/catkins/resin/resin-pro-3.1.s061026/webapps/nav/WEB-INF/work/pre-enhance/temp/NfdcFacilitiesBean__ResinExt.java:320:
';' expected
String sql = "delete from nav."NfdcFacilities" where "SiteNumber"=?";
^
3 errors
|