spring-roo

store strings of arbitrary length in Postgresql

元气小坏坏 提交于 2019-11-29 06:20:33
I have a Spring application which uses JPA ( Hibernate ) initially created with Spring Roo. I need to store Strings with arbitrary length, so for that reason I've annotated the field with @Lob : public class MyEntity{ @NotNull @Size(min = 2) @Lob private String message; ... } The application works ok in localhost but I've deployed it to an external server and it a problem with encoding has appeared. For that reason I'd like to check if the data stored in the PostgreSQL database is ok or not. The application creates/updates the tables automatically. And for that field (message) it has created a

appfuse vs roo - what would you use

我怕爱的太早我们不能终老 提交于 2019-11-29 01:02:30
问题 Appfuse vs. Roo, what would you use and why? What are the sweet spots of each. 回答1: As per the answer I gave to TheServerSide thread on this issue...: AppFuse aims to provide a single initial scaffold of your new project. This is similar to Maven archetypes or Eclipse's "new project" features in that you run them once at the start of a new project and then you maintain the scaffolded code going forward. The scaffold system has no further involvement in your project once you've run it once.

Is it possible to update only a subset of attributes on an entity using Spring MVC with JPA?

假如想象 提交于 2019-11-28 18:50:52
I'm working with Spring Roo, using Spring MVC and JPA for persistence with a MySQL database. I'm very new to Spring MVC and Java in general but have worked with CakePHP and Rails. I have a User entity that contains personal details in addition to a password. Something like this (excluding a lot of Roo-generated functionality in additional .aj files): public class User { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID") private Long id; @Column(name = "PASSWORD", length = 32) private String password; @Column(name = "FIRST_NAME", length = 25) private String firstName;

hot deploy in embedded jetty

限于喜欢 提交于 2019-11-28 18:24:32
I have a Spring Roo project and I use mvn jetty:run to run my app. The only problem is changes to the *.java classes do not hot deploy, while changes to *.jspx hot deploy fine. So how can I configure mvn jetty to hotdeploy for java classes? You need to set the scanIntervalSeconds to a value greater than 0 to enable it: scanIntervalSeconds - The interval in seconds to scan the webapp for changes and restart the context if necessary. Ignored if reload is enabled. Disabled by default. Default value is : 0. So the configuration might looks like this: <plugin> <groupId>org.mortbay.jetty</groupId>

CRUD: To Roo or not to Roo? [closed]

帅比萌擦擦* 提交于 2019-11-28 16:51:35
I have been using Groovy on Rails for CRUD applications. I am starting a new project where we are not allowed to use Grails anymore (we have a list of allowed jars and grails is not there). I am considering using Spring ROO or JBoss Seam. How do they compare? What are their major strengths and weaknesses? Tim Note that Spring Roo and JBoss Seam aren't directly comparable, as JBoss Seam in itself doesn't provide the CRUD application generation mentioned in the question. JBoss Seam however comes with the seam-gen tool, which provides this functionality. It would therefore probably be better to

Spring-security cannot match “?parameter” format?

五迷三道 提交于 2019-11-28 03:54:31
问题 I use spring-security to secure my web, when I'm learning it by spring-roo generated config file in applicationContext-security.xml, in <http> node: <intercept-url pattern="/userses?form" access="hasRole('ROLE_ADMIN')" /> It means when you want to create a Users object, firstly you need to login to get ADMIN permission. But actually it didn't work. Check the log: 2012-05-06 11:39:11,250 [http-8088-7] DEBUG org.springframework.security.web.util.AntPathRequestMatcher - Checking match of request

Grails vs Roo - why SpringSource is pushing two very similar technologies?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 02:58:48
SpringSource (now VMWare) has two very similar technologies: Grails and Spring Roo. I have been using Grails, but I see that SpringSource is actively working on something that is a competitor for that technology and that makes me worried about the future of Grails. Does anyone know how these technologies relate, are they going to be merged, or one of them will be abandoned? Besides, are there any important technical differences betweent Grails and Roo? SpringSource 's goal is to make it as fast and easy as possible for people to build, run and manage Spring-based solutions. We have both Grails

Is it possible to update only a subset of attributes on an entity using Spring MVC with JPA?

泪湿孤枕 提交于 2019-11-27 11:54:19
问题 I'm working with Spring Roo, using Spring MVC and JPA for persistence with a MySQL database. I'm very new to Spring MVC and Java in general but have worked with CakePHP and Rails. I have a User entity that contains personal details in addition to a password. Something like this (excluding a lot of Roo-generated functionality in additional .aj files): public class User { @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "ID") private Long id; @Column(name = "PASSWORD", length

CRUD: To Roo or not to Roo? [closed]

时光怂恿深爱的人放手 提交于 2019-11-27 10:10:07
问题 I have been using Groovy on Rails for CRUD applications. I am starting a new project where we are not allowed to use Grails anymore (we have a list of allowed jars and grails is not there). I am considering using Spring ROO or JBoss Seam. How do they compare? What are their major strengths and weaknesses? 回答1: Note that Spring Roo and JBoss Seam aren't directly comparable, as JBoss Seam in itself doesn't provide the CRUD application generation mentioned in the question. JBoss Seam however

Grails vs Roo - why SpringSource is pushing two very similar technologies?

旧城冷巷雨未停 提交于 2019-11-26 23:54:12
问题 SpringSource (now VMWare) has two very similar technologies: Grails and Spring Roo. I have been using Grails, but I see that SpringSource is actively working on something that is a competitor for that technology and that makes me worried about the future of Grails. Does anyone know how these technologies relate, are they going to be merged, or one of them will be abandoned? Besides, are there any important technical differences betweent Grails and Roo? 回答1: SpringSource's goal is to make it