PERTY,
"org.postgresql.Driver")
.put(Constants.JDBC_URL_PROPERTY,
"jdbc:postgresql://<>:5432/are?user=<>&password=<>&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory");
}
};
Rick Bonnett
Programmer Analyst
Ascent Global Logistics
[X]
Thanks. That got me on the path to success
Rick Bonnett
Programmer Analyst
Ascent Global Logistics
[X]
PO Box 1039, Augusta, ME, 04332
Office: 207.620.8670
ascentgl.com<http://ascentgl.com/>
[cid:eeb9a99a-9f1c-43c5-b220-54ed4a9e63ad]
From: M
aps) {
for (DbEntity entity: dm.getDbEntities()) {
entity.setSchema("p");
}
}
ObjectContext ORMContext = cayenneRuntime.getContext();
Rick Bonnett
Programmer Analyst
Ascent Global Logistics
[X]
PO Box 1039, Augusta, ME, 04332
Office: 207.620.8670
ascentgl.com<http://ascentgl.com/>
[cid:0
msg%n
Any help is greatly appreciated
Thanks
Learn more about Ascent Global Logistics at
www.ascentgl.com<http://www.ascentgl.com/>.
[1492612735782_ascentlogo.jpg]
Rick Bonnett
Programmer Analyst
Ascent Global Logistics
Office: 207.620.8670
P.O. Box 1039
August
rmQuery(rawSelect);
>Map row = (Map)list.get(0);
>
> Number autoincrementID = (Number)row.get("ID");
>
>return new Integer(autoincrementID.intValue());
>}
>
>
> On Wed, Jan 8, 2014 at 2:45 PM, Rick Bonnett wrote:
>> I’m trying to dir
I’m trying to directly fetch the nextval form a postgres sequence using
Cayenne, and am baffled but why I am getting nothing back.
I’m using SqlTemplate to build my query, since the modeler does;t seem to let
me model a sequence DB object directly.
Code snippets:
1) using performQuery
SQLTempl
This is using 3.1B2.
>From Eclipse, I export my project as a runnable jar file. When I try to
>execute it from bash, I get this exception thrown at startup:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at s
either. Maybe there are some clues. And finally - if the standard
ResourceLocator above doesn't work, you can define your own.
Sorry if this answer is too abstract. I guess I'll need to experiment with
namespaces to better understand class loading patterns involved.
Andrus
On Aug 20, 20
This is all related to a RESTful service running under Glassfish and developed
in Eclipse.
In my current project, I have all my Cayenne model classes, and a corresponding
manager class contained in a separate namespace, say EventModel. I export a jar
file for this namespace and use Maven to th
kely the culprit.
So which Glassfish version do you have? Maybe I can try a basic test in an
isolated environment.
Andrus
On Apr 16, 2013, at 1:26 PM, Rick Bonnett
mailto:rbonn...@mesca.com>> wrote:
OK. One more level down the rabbit hole now…
now that I have velocity seemingly loading,
ple of
what you needed. Not sure how easy it would be to integrate with your
app.
http://classpathhelper.sourceforge.net/
On Tue, Apr 16, 2013 at 8:38 AM, Rick Bonnett wrote:
I'm trying to use SQLTemplate queries and running into a strange problem. This
snippet works fine if I run it
n example of
> what you needed. Not sure how easy it would be to integrate with your
> app.
>
> http://classpathhelper.sourceforge.net/
>
> On Tue, Apr 16, 2013 at 8:38 AM, Rick Bonnett wrote:
>> I'm trying to use SQLTemplate queries and running into a strange problem.
>> This snippet wo
I'm trying to use SQLTemplate queries and running into a strange problem. This
snippet works fine if I run it in a plain Java application, but fails if I then
use it within a web service running under Glassfish.
In both cases I am using the same cayenne metadata files. I have also noticed
the sa
13 matches
Mail list logo