How do you enable sql statment logging with Spring and Hibernate?
Add prop elements to the sessionFactory bean in the Spring configuration file. The useful property keys are hibernate.show_sql, hibernate.format_sql and hibernate.use_sql_comments.
Additional properties for the session factory bean.
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="hibernateProperties">
<props>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.use_sql_comments">true</prop>
</props>
</property>
</bean>
How do you add a bean-style property to a Hibernate POJO (annotated with Entity) that is NOT mapped to a column?
Adding a standard bean accessor to a POJO that is not mapped to a column will cause Hibernate to complain (translation pukes with an exception). Any bean-style property must be annotated with the Transient annotation to satisfy Hibernate.
What are the plug-in update site URLs for recommended Eclipse plug-ins?
Open extern: http://openextern.googlecode.com/svn/trunk/openextern_update
The following two are both Maven Plug-ins. M2 has been around for a while and the development release is is good. q4e is newer, has a ton of cool features and and is actually part of the eclipse foundation. Unfortunately, both of them can not be used at the same time on the same project. They both add class path containers that conflict with each other. I have not had any problems (yet) with have both plugins installed.
The following two are both subversion plugins.
Subclipse: http://subclipse.tigris.org/update_1.2.x
Subversive (also check here): http://www.polarion.org/index.php?page=overview&project=subversive
SpringIDE: http://springide.org/updatesite
How do you install and manage plugins separate from the Eclipse installation?
Link files are the core of a decoupled Eclipse installation.
How do you remove plugins installed with the Updates/Find and Install/Search for new features to install?
Remove corresponding site elements from the Platform.xml. The plugin can be easily reintroduced by creating a link file in the eclipse/links folder.
What are the recommended artifact ids of the spring dependencies?
There are a bunch of parallel artifacts in the maven repositories that are all under the org.springframework group id but are not updated as synchronously with spring (like spring-mock and spring-binding). What are the artifacts that are consistently maintained and released by the spring team? The spring distribution download includes a dist/maven directory that contains all of the maven poms released as part of the distribution. Every class in the spring framework is resolved by one of the poms in this directory (not surprisingly, spring-mock is not included). So who is responsible for maintaining artifacts like spring-mock? I dunno.
Windows: The msysGit package to install is the Git-{version}-{date}.exe file.
git config --global user.name "Ryan Ovrevik"
git config --global user.email "myEmailAddress"
git config --global color.ui "auto"
ssh-keygen -t rsa -C"myEmailAddress for git"
export EDITOR=notepad2.exe
git reset --hard origin/master
Triemax Jalopy Related Software