I create a new project with appfuse-basic-struts. and after i executed
mvn appfuse:full-source mvn clean mvn eclipse:eclipse and import the
project into my eclipse, there is an compile error in line85 of class
UserDaoHibernate: Table table =
AnnotationUtils.findAnnotation(User.class, Table.class); the error
message is : The method findAnnotation(Method, Class) in the type AnnotationUtils is not applicable for the arguments (Class, Class)
原因是是spring-core-2.0.5包出来的问题,解决办法:把2.5版本的jar改个名字放到maven依赖库中对应的位置,恢复正常。
分享到:
相关推荐
使用@IdClass创建联合主键,并实现外部关联
<class name="com.bjsxt.hibernate.User" table="t_user"> <generator class="native"/> <!-- --> </class> <class name="com.bjsxt.hibernate.Group" table="t_group"> ...
[WARNING] Table Configuration product matched more than one table (demo..product,shop..product,sms..product) 今天用逆向工程时,发现生成的xml有700多行,而且对应的方法生成了三次,所以导致java.lang....
o hashset.h - This declares a hash set class. o hashset.cpp - This defines a hash set class. o dictionary.h - This file contains the partial definition of class Dictionary. Class Dictionary inherits...
imp system/oracle file='/tmp/oracle-table-20130509.dmp' log='/tmp/oracle-table-20130509.log' fromuser=oracle; 此文件是导出用户oracle下的所有表 。 按以上sql语句导入数据库即可,如果没有oracle用户...
1.One Table 1.1 添加数据源 在: \jboss-4.2.2.GA\docs\examples\jca\oracle-ds.xml,拷贝oracle-ds.xml 到: \jboss-4.2.2.GA\server\all\deploy 配置内容: <jndi-name>OracleDS <connection-url>jdbc:oracle:thin:...
o hashset.cpp - This defines a hash set class. o dictionary.h - This file contains the partial definition of class Dictionary. Class Dictionary inherits from class HashSet. o wordlist.zip - This ...
Table of Contents Preface, Notes, Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
<class name="org.hibernate.sample.TUser" table="t_user" dynamic-update="true" dynamic-insert="true" optimistic-lock="version"> …… </class> optimistic-lock 属性有如下可选取值: none:无乐观锁 ...
Create TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userName` varchar(50) DEFAULT NULL, `userAge` int(11) DEFAULT NULL, `userAddress` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`) ) ...
Object obj=session.findOne(User.class, "select * from user where id=1");//原生SQL if(obj!=null) { User user=(User)obj; System.out.println(user.getId()+" | "+user.getName()+" | "+user.getAge()+...
TABLE OF CONTENTS 013649-4 FM.F 12/3/01 9:08 AM Page viii 3)WORK WITH CONTROLS Using Buttons ..............................................................................................................
本文实例讲述了thinkphp视图模型查询失败提示:ERR: 1146:Table ‘db.pr_order_view’ doesn’t exist解决办法。分享给大家供大家参考。具体方法如下: 一、问题描述: 想用thinkphp的视图模型进行关联查询,结果...
@Table.Column(name="user_id",type=Column.TYPE_INTEGER,isPrimaryKey=true) public Integer userId; @Table.Column(name="user_name",type=Column.TYPE_STRING,isNull=false) public String userName...
9 Extending the User Interface . 265 Custom Actions 265 The CustomAction Element . 265 The CustomActionGroup Element 273 The HideCustomAction Element . 275 Server-Side Custom Actions 276 Ribbons . 279...
Class.forName("org.springframework.context.ApplicationContext"); supportSpring = true; } catch (ClassNotFoundException ex) { } try { Class.forName("org.loon.framework.Loon"); supportLoonframework = ...
Describes the Tkinter widget set for constructing graphical user interfaces (GUIs) in the Python programming language. This publication is available in Web form1 and also as a PDF document2. Please ...
│ │ ListClass.aspx.cs │ │ ListSubject.aspx │ │ ListSubject.aspx.cs │ │ LoginOut.aspx │ │ LoginOut.aspx.cs │ │ QuestionDetails.aspx │ │ QuestionDetails.aspx.cs │ │ RegisterStudent.aspx ...
3. Constructing and Using Table Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281 3.1 Instantiating a Table View 281 3.2 Assigning a Delegate to a Table View 284 ...
Table of Contents 1. Introduction.................................................................................................................8 1.1 SMPP Overview......................................