乗っ取れコンテナ!!開発者から見たコンテナセキュリティの考え方(CloudNative Days Tokyo 2021 発表資料)NTT DATA Technology & Innovation
この記事は Java EE Advent Calendar 2013 の 24 日目の記事です。 昨日は nabedge さんの 「JAX-RSのビューとしてMixer2を使ってみる」 でした。 明日は eller86 さんの 「ウェブアプリケーションサーバでよくあるクラスローダのトラブル」 です! 概要 これから Java Persistence API (JPA) を使ってみようとしている人向けの、JPA の簡単な使い方や IDE の機能の紹介などの話です。 私自身、最近 JPA を使い始めたのですが、日本語の実践的な入門記事みたいなのが見当たらなくて苦労した (JPA の概念の説明記事は結構あって助かったのですが) ので、少しでも参考になればと思います。 IDE 関係の話は Eclipse ユーザー向けの説明になりますが、NetBeans でもだいたい似たようなことができるはずです。
最近 Java Persistence API (JPA) を使ってみてます。 まだ使いこなせてはないですがなかなかいいですね。 今まで触ったことのある O/R マッパー *1 の設計が嫌いだったので O/R マッパーにはあんまりいい印象持ってなかったんですが、JPA の設計はよく考えられてて良いと思いました。 Java Persistence criteria query が SQL を意識したものになっているのも良い感じです。 JPA のエンティティクラスに対するメタモデル Metamodel API というのがあることをさっき知ったのでメモ書きしておきます。 JSR-338 (JPA 2.1) には、メタモデルについて次のように書かれていました。 6.2 Metamodel Java Persistence criteria queries are based on a metamo
おいでいただきありがとうございます。このブログでは、ソフトウェア開発や音楽(特にB'z)、車の事などを主にてきと〜に書いていく予定です。Rio's Laboratory (http://homepage3.nifty.com/rio_i/lab/) にて、いくつか文書とフリーソフトウェアを公開してます。 今回から数回は、セッション Bean からのデータベースアクセスについて書こうと思います。 EJB3.0 では、データベースへの永続化を行う際に Java Persistence API (JPA) を使います。JPA は、オープンソース O/R マッピングフレームワークである Hibernate 等と同じ様な感覚で扱うことができる Java 標準 O/R マッピング API です。 JPA を使えば、JDBC + SQL による煩雑なコーディングをする必要が無いため、コーディング量が
Categories 2.0 (29) 2.5/2.1 (18) 3.0 (37) 3.1 (17) AMQP (7) Android (4) AOP (20) Apache Tomcat (7) Books (3) Builds (16) Bundlor (1) Business (27) Cloud Computing (48) Cloud Foundry (18) Containers (12) Data Access (41) dm Server (64) Enterprise Integration (22) Google (3) Green Beans (6) Groovy/Grails (50) Hyperic HQ (6) Hyperic IQ (1) IOC Container (31) Java (78) JMS (6) JMX (4) JSF (2) Manageme
JPA (Java Persistence API) でも SQLite を使いたい!ということで試してみる。いちいちデータベースサーバとか用意したり起動したり面倒くさいし。 環境としてはMacでこんな感じ。要Maven2。 $ java -version Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8 java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode) $ mvn -v Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8 Apache Maven
I am using resource local entitymanager with JPA 1 . What is the best practice for creating EntityManager that is Create do job close entitymanager everytime.(Entitymanager not heavy weight but still boring ) Create a entitymanager for every thread and store it as ThreadLocal variable and use it (a-where should i close entitymanager b-Any entitystored in a session scoped bean will be a detached en
In 2014, we announced the retirement of our legacy forum, forum.spring.io, in favor of providing an improved community experience on stackoverflow.com. As part of that announcement, we put our forum into read-only mode, preserving forum posts that were referenced in various Spring issue trackers. On February 28, 2019, we plan to take the forum completely offline. In preparation for this end-of-lif
When professionalism comes in to play, so don’t miss it. As I wrote in post Why we need type-level injections in JavaEE, injecting EJB 3 stateful beans into servlet instance fields is not thread-safe. Along the same line, injecting EntityManager with @PersistenceContext into servlet instance variables is not thread-safe, either. EntityManager is just not designed to be thread-safe. For example, th
I have a query factory that takes a column name as an attribute in order to search for that column. Right now I'm passing the name of the column as a string, so it's kind of hardcoded. If the name of the column changes in the entity's annotation, that "hidden dependency" breaks up. Is there a way in jpa to retrieve the real name of the column and have it available at compile time, so I can use it
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く