タグ

javaとSpringに関するunpushのブックマーク (6)

  • iBatisから1対多のテーブルからのデータ取得2 - Struts 2+Spring 2+Tiles+Acegi+iBatis+GWT+JUnit 4+JMockit でフルスタックJAVAフレームワーク

    前の方法(iBatisでの1対多のテーブルからのデータ取得 - Struts 2+Spring 2+Tiles+Acegi+iBatis+GWT+JUnit 4+JMockit でフルスタックJAVAフレームワーク)だと、1対多の多側の取得にN回のクエリ実行が必要で、全体でN+1回のクエリを実行することになってしまう。 それだと効率がよくない場合があるので、それを1回のクエリで済ませてしまう方法の1つが iBatisのgroupBy指定 によるものである。 これは、多側のテーブルもJOINしたクエリを発行し、結果をgroupByで指定した所定の列の値によりグルーピングするものである。 <sqlMap namespace="suser"> <resultMap id="hist" class="tutorial.User$History"> <result property="date" c

    iBatisから1対多のテーブルからのデータ取得2 - Struts 2+Spring 2+Tiles+Acegi+iBatis+GWT+JUnit 4+JMockit でフルスタックJAVAフレームワーク
  • Private Presentation

    Private content!This content has been marked as private by the uploader.

  • Spring 2.5:Spring MVCの新機能

    Web層ではSpring XMLの設定が下の層に比べて冗長になりがちで、おそらくその価値も低い傾向にあるので、わずかな量のXMLで済むというのは素晴らしいニュースです。コントローラは、view名やフォームオブジェクト名、バリデータ型など多数のプロパティを保持しますが、その目的は依存性注入よりも設定です。そうした設定を効率的に管理する方法として、bean定義の継承や、あまり頻繁に変更しないプロパティの設定回避があります。しかし、経験から申し上げると、多数のデベロッパがそうした方法をとらないので、結果として必要以上のXMLとなってしまうのです。ですから、@Controllerと@AutowiredはWeb層の設定に非常に好ましい効果を上げられるのです。 シリーズ第2弾でこの議論を引き継ぎ、Web層向けのSpring 2.5アノテーションを一通り見て回ります。こうしたアノテーションは非公式に@M

    Spring 2.5:Spring MVCの新機能
  • Spring 2.5の新機能―Part 1

    @Resourceアノテーションは「名前つきリソース」の依存性注入を可能にします。Java EEアプリケーション内では通常、JNDIコンテキストに結びついたオブジェクトに翻訳します。Springは、JNDIルックアップを通じてオブジェクトを解決する@Resource の利用法をサポートこそしていますが、デフォルトでは、@Resourceアノテーションに提供された名前と一致する「Bean名」を持つSpring管理オブジェクトが注入されます。次の例でSpringは、「dataSource」というBean名がついたSpring管理オブジェクトのリファレンスをアノテートされたセッターメソッドに渡します。 @Resource(name="dataSource") public void setDataSource(DataSource dataSource) { this.dataSource =

    Spring 2.5の新機能―Part 1
  • Spring Framework's Migration from Jira to GitHub Issues

    We used the opportunity to streamline the Jira field values, so for example 25 component values in Jira correspond to 5 "in: *" labels on GitHub. The "status: *" and the "type: *" labels have also been given extra through and revised. Our choice of labels is aligned with the labels used in Spring Boot. The Boot team has given their process and labels a lot of thought, and we know the consistency w

    Spring Framework's Migration from Jira to GitHub Issues
    unpush
    unpush 2010/02/16
    どんな例外も500になってしまうのはSpring2.5.5のバグだった
  • Maven - Spring-Json View

    What is Spring-Json View? Spring-Json View adds JavaScript Object Notation (JSON) support to Spring-MVC. It is deeply integrated into the Spring-MVC module and can be used with a variety of standard controllers. In the J2EE world Spring-MVC has become a popular model-view-controller framework for web applications providing better separation of concerns than the older Struts framework. In this age

  • 1