Hello, how do I run some Roo commands from java code? For example I would like to run a class that is able to read some files and decide to add or remove fields in an object domain using the "field"...
Type: Posts; User: moacsjr; Keyword(s):
Hello, how do I run some Roo commands from java code? For example I would like to run a class that is able to read some files and decide to add or remove fields in an object domain using the "field"...
Hi,
Where I can find a CRUD example app?
Thanks. :-)
Hi people,
I'm trying to create a "Spring" CRUD demo application, but there is a problem when form's "update action" is fired.
The Spring Servlet Controller redirects to the rigth controller...
Well I´m not using jsp.
It seams that this is something not really easy to do wright.
I need to report the bind/validation errors to the calling application not to a jsp page.
Hi,
I catch ServletRequestBindingException now I want to show the errors with messages resolved by the messageSource.
I need an explample.
Hi,
How to get the forms validation errors from the request. What is the Key to search for the attribute that has the errors? I don´t want this in jsp, I just want to inspect the errors my self.
...
I´m using declarative transaction demarcation for business logic and it seams to work fine. The only problem is that this operation
...
Client c1 = new Client();
c1.setCompany(...
Spring 1.2 RC1 (28.3.2005)
Hibernate version 2.1.7c, 24.11.2004
Erik on Hibernate forum
And separeted sessions means diferent objetcs references to the same record.
:roll:
Well,
I have an Client class like this
public class Client{
private ClientType type;
private Company company;
Hi,
I´m getting NonUniqueObjectException because I really have two instances of the same class that represent the same row in a DB.
But I want to have the same object reference when I fetch the...
Hi Robh, thank's for the fast answer.
Just one last question, do you know when this feature will be implemented?
bye.
Hi,
I would like to know if is possible to use generics with BeanFactory and how to use it?
thank's
Moa.
Hi Thomas!
Yes and ...
class path resource [br/syndeo/dms/domain/pessoa] cannot be resolved to URL because it does not exist
Seems that the initial / was removed.
First, I have to thank you katentim for the help. ;-)
Just let me add some new usefull information that I've just forgot.
This is an EJB component, so it will be pakaged in a Jar file and the...
Hi,
Take a look at this file:
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property...
Hi,
the problem was caused by an incomplet hibernate.cfg.xml configuration.
<property name="configLocation">
<value>META-INF/hibernate.cfg.xml</value> ...
Hello peaple!!
I'm trying to run some unit tests with JUnit but I´m getting some errors messages.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name...
It works!!!
Thanks for help!
Hi!
Someone knows about this error
2005-05-06 14:22:37,515 INFO [net.sf.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: false
2005-05-06 14:22:37,515 INFO ...
Hi!
What about this?
Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception...
Hi everybody!!
Tanks to all you folks that try to help me.
The solution
I begin to review all configuration files from my project and a discovery that my ejb-jar.xml and jboss.xml doesn´t...
Hi people!!!
I'm trying to use spring + Hibernate + Ejb.
I started with the dataSource configuration on JBOss AS.
What I´ve done:
1 ). Create a mysql-ds.xml and put it into...
Hi to all!
I know that ApplicationContexts can be created declaratively using for example a ContextLoader.
I´m using the ContextLoader implementations: ContextLoaderListener.
So I register...
Hi!
Thank's a lot for your help. It realy works!
Bye.
Hi!
When I try to load a bean using BeanFactory, the file was not found. Where I have to put this file?
package syndeo.teste;
import org.springframework.beans.factory.xml.XmlBeanFactory;...