Group items matching
in title, tags, annotations or urlDependency Injection in Java EE 6 (Part 6) - 0 views
-
one of the most important value propositions for frameworks like Spring has been the ability to easily extend the framework or integrate third-party solutions
-
SPI allows you to register your own beans, custom scopes, stereotypes, interceptors and decorators with CDI even if is it not included in the automatic scanning process (such as perhaps registering Spring beans as CDI beans), programmatically looking up CDI beans and injecting them into your own objects (such as injecting CDI beans into Spring beans) and adding/overriding annotation-metadata from other sources (such as from a database or property file)
-
SPI can be segmented into three parts. Interfaces like Bean, Interceptor and Decorator model container meta-data (there are a few other meta-data interfaces such as ObserverMethod, Producer, InjectionTarget, InjectionPoint, AnnotatedType, AnnotatedMethod, etc). Each meta-data object encapsulates everything that the CDI container needs to know about the meta-data type
Introduction to Robustness Diagrams - 0 views
-
Boundary
-
Control
-
Entity
- ...7 more annotations...
Java Persistence/Auditing and Security - Wikibooks, open books for an open world - 0 views
-
Use a common database user id, and manage auditing and security in the application
-
managed in the application by having an application user, and a single shared database user
-
adding a AUDIT_USER and AUDIT_TIMESTAMP column to all of the audited tables and auditUser and auditTimestamp field to all of the audited objects
- ...5 more annotations...
Pro JPA 2: Mastering the Java™ Persistence API > Advanced Topics > SQL Queries - Pg. : Safari Books Online - 0 views
-
queries are also known as native queries
-
SQL Queries
-
reasons why a developer using JP QL might want to integrate SQL queries into their application
- ...32 more annotations...
JBoss Developer Framework - 0 views
FAQ How do I run Eclipse? - Eclipsepedia - 0 views
-
Find the JVM If a JVM is installed in the eclipse/jre directory, Eclipse will use it; otherwise the launcher will consult the eclipse.ini file and the system path variable
-
Eclipse DOES NOT consult the JAVA_HOME environment variable
-
eclipse.ini The most recommended way to specify a JVM for Eclipse to run in is to put startup configuration into the eclipse.ini file
- ...3 more annotations...
Java Persistence/Runtime - Wikibooks, open books for an open world - 0 views
-
In JEE the EntityManager or EntityManagerFactory can
-
injected into a SessionBean
-
A managed EntityManager should never be closed, and integrates with JTA transactions
- ...3 more annotations...
3 ways to serialize Java Enums | Vineet Manohar's blog - 0 views
-
Mapping enum to database column using JPA/Hibernate You can use any of the 3 approaches discussed above. Map the enum to an integer column. The persistence implementation should automatically convert enum to ordinal() and back for you. Map the enum to a String column. The persistence implementation should automatically convert the enum value to String value via the name() function. Map the enum using a business value. You should mark the enum field as @Transient, and create another String field which you can map to a String column in your database table. Here’s an example code snippet. view plaincopy to clipboardprint?@Entity public class Product { @Column private String colorValue; @Transient public Color getColor() { return Color.fromValue(colorValue); } public void setColor(Color color) { this.colorValue = color.toValue(); } }
-
Approach 3: Using a user defined business value – Recommended approach! This approach involves assigning a an explicit user defined value to each enum constant and defining a toValue() and fromValue() methods on the enum to do the serialization and deserialization.
-
public enum Color { RED("RED"), GREEN("GREEN"), BLUE("BLUE"), UNKNOWN("UNKNOWN"); private final String value; Color(String value) { this.value = value; } public static Color fromValue(String value) { if (value != null) { for (Color color : values()) { if (color.value.equals(value)) { return color; } } } // you may return a default value return getDefault(); // or throw an exception // throw new IllegalArgumentException("Invalid color: " + value); } public String toValue() { return value; } public static Color getDefault() { return UNKNOWN; } } public enum Color { RED("RED"), GREEN("GREEN"), BLUE("BLUE"), UNKNOWN("UNKNOWN"); private final String value; Color(String value) { this.value = value; } public static Color fromValue(String value) { if (value != null) { for (Color color : values()) { if (color.value.equals(value)) { return color; } } } // you may return a default value return getDefault(); // or throw an exception // throw new IllegalArgumentException("Invalid color: " + value); } public String toValue() { return value; } public static Color getDefault() { return UNKNOWN; } } This approach is better than approach 1 and approach 2 above. It neither depends on the order in which the enum constants are declared nor on the constant names.
JPA and Enums via @Enumerated - 0 views
Seam Framework - Maven Artifacts - 0 views
-
adding this profile to your settings.xml
-
Seam 3 modules and examples are published to the JBoss Community Maven Repository when they are released
-
<url>http://repository.jboss.org/nexus/content/groups/public</url>
- ...1 more annotation...
5. POJO Services - Confluence - 0 views
DDD Sample Application - Introduction - 0 views
Application Security With Apache Shiro - 0 views
-
previously known as the JSecurity project
-
The word Subject is a security term that basically means "the currently executing user"
-
Core Concepts: Subject, SecurityManager, and Realms
- ...12 more annotations...
jbossas/quickstart · GitHub - 0 views
-
The quickstarts demonstrate JBoss AS 7, Java EE 6 and a few additional technologies. They provide small, specific, working examples that can be used as a reference for your own project
JBoss Developer Framework - 0 views
-
migrating Spring Applications to Java EE 6 technology
-
rationale for migrating your applications from Spring to Java EE 6
-
examples of upgrading the web UI, replacing the data access layer, migrating AOP to CDI interceptors, migrating JMX, how to deal with JDBC templates
- ...1 more annotation...
« First
‹ Previous
61 - 80 of 81
Next ›
Showing 20▼ items per page