[examples.lambico] push by lucio.be...@gmail.com - Substituted @Autowired with @Resource. on 2011-03-06 09:20 GMT

3 views
Skip to first unread message

lam...@googlecode.com

unread,
Mar 6, 2011, 4:20:36 AM3/6/11
to lambico...@googlegroups.com
Revision: 9e8c0a3c56
Author: lucio.benfante <lucio.b...@gmail.com>
Date: Tue Jan 25 09:30:18 2011
Log: Substituted @Autowired with @Resource.
http://code.google.com/p/lambico/source/detail?repo=examples&r=9e8c0a3c56

Modified:

/consoleSpringHibernate/src/main/java/org/lambico/example/consolespringhibernate/app/UseBookDAO.java

=======================================
---
/consoleSpringHibernate/src/main/java/org/lambico/example/consolespringhibernate/app/UseBookDAO.java
Tue Jan 25 01:57:20 2011
+++
/consoleSpringHibernate/src/main/java/org/lambico/example/consolespringhibernate/app/UseBookDAO.java
Tue Jan 25 09:30:18 2011
@@ -18,11 +18,11 @@
package org.lambico.example.consolespringhibernate.app;

import java.util.List;
+import javax.annotation.Resource;

import org.lambico.example.consolespringhibernate.dao.BookDao;
import org.lambico.example.consolespringhibernate.po.Book;
import
org.lambico.example.consolespringhibernate.util.ApplicationContextHolder;
-import org.springframework.beans.factory.annotation.Autowired;

/**
* A simple example of an application using Lambico for Book entity.
@@ -33,7 +33,7 @@
*/
public class UseBookDAO {

- @Autowired
+ @Resource
private BookDao bookDao;

public UseBookDAO() {

Reply all
Reply to author
Forward
0 new messages