使用spring roo创建名为'transactionmanager'的bean时出错

时间:2011-11-21 23:04:39

标签: spring spring-roo

这是我用来创建spring roo app的脚本:

// Spring Roo 1.1.5.RELEASE [rev d3a68c3] log opened at 2011-11-21 11:16:11
project --topLevelPackage school.javafinal
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
entity --class ~.model.Brand
field string --fieldName name --sizeMax 70
entity --class ~.model.Category
field string --fieldName name --sizeMax 70
entity --class ~.model.Comment
field string --fieldName content --sizeMax 2000
field date --fieldName created_on --type java.util.Date
entity --class ~.model.Orders
field date --fieldName created_on --type java.util.Date
field number --fieldName price --type java.lang.Float
entity --class ~.model.OrderDetails
field date --fieldName created_on --type java.util.Date
entity --class ~.model.OrderStatuses
enum type --class ~.model.EOrderStatus
enum constant --name Pending
enum constant --name Denied
enum constant --name Complete
field enum --fieldName status --type ~.model.EOrderStatus
entity --class ~.model.Product
field date --fieldName created_on --type java.util.Date
field string --fieldName name --sizeMax 100
field string --fieldName imageUrl --sizeMax 1000
field string --fieldName specs --sizeMax 4000
field string --fieldName description --sizeMax 4000
field string --fieldName warranty --sizeMax 100
field number --fieldName price --type java.lang.Float
field number --fieldName quantity --type java.lang.Short
field number --fieldName rate --type java.lang.Float --decimalMax 5
// Reference
focus --class ~.model.Product
field set --fieldName comments --type ~.model.Comment --cardinality ONE_TO_MANY --mappedBy product
focus --class ~.model.Orders
field reference --class ~.model.Orders --fieldName status --type ~.model.OrderStatuses
field reference --class ~.model.Product --fieldName status --type ~.model.Brand

当我使用mvn jetty运行应用程序时:运行,我在上下文初始化中出错:

  

使用名称“transactinmanager”

创建bean时出错

我如何解决这个问题,非常感谢您阅读我的问题:)

1 个答案:

答案 0 :(得分:0)

我按照Spring CookBook中的教程看起来像

  

- 的mappedBy

没有出现在最新的spring-roo