Mark Spritzler wrote:
Jon Strayer wrote:Is there a way to generate the mapping elements of hibernate.cfg.xml from the annotated classes? I could probably write something, but I don't believe I'm the first person to think of this.
Um, they would be unrelated. What can you get from the annotated class that goes into the hibernate.cfg.xml
The hibernate.cfg.xml is for SessionFactory and Hibernate configuration like show_sql and also to say that you are going to use a second level cache.
In the Annotated classes are specific to the class like its mapping to the database and named queries, nothing about the configuration of Hibernate or a SessionFactory.
Originally posted by Chris Shepherd:
I'm just now digging into the threading stuff introduced in java 1.5 (Executors and such). Is there a way to tell an executor that a runnable you pass it is more or less important than another?
Up till now I have been using the setPriority() method on my threads as I create them to allow more important threads to execute quicker when they are run by holding back on running the less important ones.
Thanks for your input.
Originally posted by Mike Clark:
Thanks for letting me know. It's something I'm considering writing.
Honestly, I don't have good resources for learning Maven. I'm not saying they're not available, but good documentation for Maven seems to be lacking. I learned what I know about Maven by trial and error. Perhaps I can help change that.
Originally posted by Paul Connolly:
Is it possible to pass in command line arguments to Maven?
In my build process, I call my goal overnightBuild which performs the entire process. I want to change the process that you can pass in an argument that specifies which branch the build is to be run off. So is it possible to pass in something like
"maven overnightBuild betaBranch" or an equivalent? Looking at their documentation and don't see anything about it or anything similar...
Originally posted by Mary Cole:
I have 2 folders where in I wantto copy specific files from folder A to foldr B...The pattern matching something like common*.properties...ie.I want to copy only files starting with "common" to folder B
How do i do this