I'm going to copy all this over to the mailing list now, per burtbeckwith suggestion.
Type: Posts; User: benethridge; Keyword(s):
I'm going to copy all this over to the mailing list now, per burtbeckwith suggestion.
Ok. Looking over the Grails syntax, the Hibernate general syntax and our specific syntax, this is what I come up with:
...
static mapping = {
tablePerHierarchy false
table...
I think maybe I see it:
http://grails.org/doc/latest/ref/Database%20Mapping/id.html
I will attempt this.
Ah here is more:
@Column(name = "CONTACT_ID", unique = true, nullable = false, precision = 22, scale = 0)
@SequenceGenerator(name = "SEQ_GEN", sequenceName = "CONTACT_SEQ", allocationSize = 1)...
Also, I looked over some of our hibernate code. Apparently we use @BusinessKey, as in:
@Entity
...
@Table(name = "CONTACT")
public class Contact ...{
...
/** The id */
@BusinessKey
I confirmed with the DBA just now: an Oracle sequence and a trigger. Now I just need to know which hibernate value applies for that design pattern. Anyone know?
I intend to add new records.
The DBAs have all gone for the day, but I'm pretty sure they handle it with a trigger or some such. Whenever I add new rows in TOAD or Oracle SQL Developer, it...
Hi, everyone. I am a very experienced java developer, and a somewhat experienced Spring developer, but am new to Grails.
I'm trying to create a simple one-table one-class grails prototype app...
Thanks. I have not tried your command above. Tinkering around with it using tcpmon and the Spring Batch Admin web gui, examining the http request structure from the gui, I found these commands to...
Hi, everyone.
Using commands from unix and/or cygwin such as this:
curl -v -d jobParameters= http://127.0.0.1:8080/MyWeb/batch/jobs/myJob.json
...I am able to launch a Spring Batch job. ...
Hi, everyone.
Using commands from unix and/or cygwin such as this:
curl -v -d jobParameters= http://127.0.0.1:8080/MyWeb/batch/jobs/myJob.json
...I am able to launch a Spring Batch job. ...
"Always"? I don't think I can wrap all the beans in LazyInitTargetSource. There are hundreds of them and this is a production app, not a new app, so I'm not free to change much just to speed up unit...
So all Spring lazy-init's (default- or bean-level) are effectively useless?
If so, then why did they write the things? What problem were they intended to solve?
Ben
Hi, everyone.
We have a very large spring app, with multiple imported application context files imported by the root (top-level) app context file. I noticed (kinda hard to ignore :-)) that it was...
If you are using Eclipse IDE for debugging, you will need a build.properties for Tomcat that looks something like this, which is a bit different in where it deploys, compared to JBoss:
# Ant build...
I think I can give you all (and me:-)) a workaround now: Simply change to tomcat server. Unless there's something you must have with jboss, tomcat does not have this "jar hell" problem.
That being...
This didn't work. I simply added the above to the WEB-INF folder of my web app, and redeployed it.
From googling this error, I suspect there is a "jar hell" problem going on here, since my app...
I have a similar question.
Basically, I'd like to use MockHttpServletRequest in a POJO app, to mock-up what I'm seeing in an actual HttpServletRequest to a "legacy" Struts web app (WebSphere App...
Ah, yes. The loniness of leadership :).
Seriously, you made some very good points there. Probably worthy of a blog or book chapter.
Ben
Yes, I agree. Good point. Basically, I'm just saying don't use a layer without a good reason, coz there's a price to be paid for each layer. You bring up a good reason.
Interesting. I like...
Well said, again, Karl.
Bill, I heard that AppFuse is good, but comes with a huge learning curve. You think that is so?
Ben
You sure? Reading over the many responses in that thread, it seems like a lot of the people are making arguments AGAINST making XML the primary means.
Which response is the one that made the...
Spring "singletons" are not JVM singletons. This as apparently caused much confusion because of the JVM connotation to that word. I wish they'd picked a different name. See here for explanation:
...
?? Put a breakpoint at the line in the jsp and debug it. This is pretty straightforward in Eclipse, at least (maybe not other IDEs?).
I don't necessarily agree. <%...%> pretty cleanly...
I agree. Like using a chain saw versus a Dremel scroll saw. Both good tools, if used as intended.
Ben