@Service
@Transactional
public class InitialIndexPerformer {
@PersistenceContext
transient EntityManager entityManager;
@PostConstruct
public void performInitialIndex() throws...
Type: Posts; User: yarco; Keyword(s):
@Service
@Transactional
public class InitialIndexPerformer {
@PersistenceContext
transient EntityManager entityManager;
@PostConstruct
public void performInitialIndex() throws...
Ok, I want to implement two custom Enum<->String converters.
My enum is
public enum CreditCardType {
VISA, MASTER_CARD;
}
I want the user to select one option from the list. But... I...
this helped me out, and will help you!
http://forum.springsource.org/showthread.php?t=64862
thanks for the previous message.
I still can't get the difference between sequence and autoincrement though
Hey guys,
In Hibernate whats the difference between @Generate and @GeneratedValue annotation?
Also, I've been looking into primary key generation issues.
When i add @SequenceGenerator(name =...
Never mind, i solved it
<dependency>
<groupId>org.springmodules</groupId>
<artifactId>spring-modules-jakarta-commons</artifactId>
<version>0.8a</version>
</dependency>
This...
Hi, I know that this might me a wrong forum to ask this, but anyway...
I tried using OSIV in web xml like this:
<filter>
<filter-name>openSessionInViewFilter</filter-name>
<filter-class>...
thanks for the reply,
yes we try to use domain objects as command objects too. This is certainly easier!
Anyway now I understood that my @Service layer knows about DTO's, and can have methods to...
The reason I asked this question is that a while ago I read this post :
http://forum.springsource.org/showthread.php?t=64862
and specifically this
This is why I would like to know if backing...
1. Does the @Service layer know about DTO's (can on of its methods return it or take it as an argument)?If not, that which layer know about them?
2. Is the form backing object considered to be a...
hi,
In my templates.xml i have a lot of def's that look like this :
<definition name="person" extends=".mainTemplate">
<put-attribute name="page" value="/WEB-INF/jsp/person.jsp" />...
Ok,I think I got it:
This code works fine. But anyway can You guys please double check weather it is an accepted solution for this kink of problem. How Can I improve the code?
Oh, and another...
Hi, I'm trying to convert a comma-seperated string of keywords (like keyword1,keyword2 etc) to Set<Keywords> using property editors. I know that I am doing something wrong....can You please advise?...
thanks, You really helped me out!
What the benefit of using InternalResourceViewResolver ?
I mean, both can be mapped to jsp pages with prefix and stuff like that. In the documentation its written that it...
thanks! it worked
After reading this: http://forum.springsource.org/showthread.php?t=64862 and this specifically :
Can I create my Domain objects (say Employee) in my Controller based on formBackingObject or...
found it....thanks!
Hm......I made them public....nothing
What else can be the problem?
Hey guys,
Im getting a strange Ex here, and having searched through many forums can't get an answer...
can You help me please. My stack trace + jsp page + controller + command object:
...
so far everything works! Thanks Marten for all Your time and help that you provided!!!!
regards, yarco:)
I know that I can set @RequestMapping(params = "control=OK"), but how can I set multiple params here? @RequestMapping(params = "control=OK,.....")
im not sure if this is exactly what You need, but this thread will help You understand how to code You'r DAO's properly.
page 1 and 2;
http://forum.springsource.org/showthread.php?t=71665
Heh, a nice workground! :bravo! Too bad that You can not use something like getGenericSuperclass()).getActualTypeArguments() to get the generic argument right in the class that it is declared in...
hi, thanks for all those tips,
just a quick qestion on code organization, is this ok:?
package com.softservecom.training.dao;
import java.io.Serializable;
public interface GenericDAO<T, PK...