This is what worked for me in SQL Server:
@Entity
@RooJavaBean
@RooToString
@Table(name = "singlename")
@RooEntity(identifierColumn = "refentID")
public class SingleName {
Type: Posts; User: martin.gercsak; Keyword(s):
This is what worked for me in SQL Server:
@Entity
@RooJavaBean
@RooToString
@Table(name = "singlename")
@RooEntity(identifierColumn = "refentID")
public class SingleName {
I think the problem was that I mapped with identifierField and not identifierColumn. When would you use which?
This doesn't seem to work:
roo> finder add --finderName findById --class au.gov.rba.dtcc.domain.Country
[Main Thread] The finder name 'findById' contains an error
[Main Thread] Dynamic finder is...
But what about the foreign key relationships? Ideally you would define a foreign key relationship and then would have a drop down menu in the UI with the possible values. I understand that this is a...
The problem I currently have is that in my existing database I don't have the version (required by Roo) on my tables. Is it something that can be solved only by adding the version column to every...
Thanks. Switching to lower case fixed it indeed. Having bean fields start in lower case is a pretty standard practice in java, I was just copying fields from an existing database. Perhaps there could...
I have the java 1.5 (jrockit) and created a very simple class:
@Entity
@RooJavaBean
@RooToString
@RooEntity(finders = { "findSingleNamesByRefEntIDEquals" })
public class SingleName {
...
I had the same problem with the wedding.roo sample and RobertGloverJr's solution worked. I use:
$ java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build...
Deleting the project and redeploying the scripts solved that. Apparently the pom.xml that was generated earlier had incorrect dependencies.
Seems that the problem was that JRockit was not installed as a public JRE. But now I get the following error when running the tests:
$ java -version
java version "1.5.0_12"
Java(TM) 2 Runtime...
I'm using the following:
$ java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
BEA JRockit(R) (build...
Thanks.
I may do it in the future but at the moment I have to get this project working first.
I have an existing database that I have to write a simple web based CRUD application for. I'm considering using Roo. The problem I've seen so far is that Roo wants to create it's own database based...
Any suggestions for the following problem would be much appreciated.
As you can see in the code below I have two methods. One is a loop, the other one is a @Transactional. The problem is that once...