2. Flex application initialization - Confluence - 0 views
-
Application initialization
-
correct integration singleton for your application
-
depends on the server framework
- ...7 more annotations...
Java EE 7 Roadmap (The Aquarium) - 0 views
-
Java EE 7 Roadmap
-
support for use in cloud environments
-
Web Sockets
- ...19 more annotations...
Java Persistence/Querying - Wikibooks, open books for an open world - 0 views
-
Result Set Mapping
-
When a native SQL query returns objects, the SQL must ensure it returns the correct data to build the resultClass using the correct column names as specified in the mappings. If the SQL is more complex and returns different column names, or returns data for multiple objects then a @SqlResultSetMapping must be used.
-
@NamedNativeQuery
- ...7 more annotations...
EntityManager (Java EE 6 ) - 0 views
-
createNamedQuery(java.lang.String name)
-
Java Persistence query language or in native SQL
Java Persistence Performance - 0 views
Category:JPA/EclipseLink - Eclipsepedia - 0 views
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.
Using Composition in Object Modeling | Andy Gibson - 0 views
Chapter 3. Project Setup - 0 views
-
The configuration of a GraniteDS project will generally involve the following steps : Add the GraniteDS jars to the WEB-INF/lib folder of the WAR file or the lib folder of the EAR file Add the GraniteDS listener, servlets and filters in the standard WEB-INF/web.xml configuration file Define the internal configuration of GraniteDS in the WEB-INF/granite/granite-config.xml file Define the application configuration of GraniteDS (remoting destinations, messaging topics...) in the WEB-INF/flex/services-config.xml
-
You will always need granite.jar
-
jar for your JPA provider (granite-hibernate.jar for Hibernate)
- ...11 more annotations...
Security Module Drafts - Apache DeltaSpike - Apache Software Foundation - 0 views
-
Authorization
-
Impersonalization
-
authenticates “as a user” or access application imitating his identity - without knowing his password
- ...36 more annotations...
Comparison - 0 views
-
TomEE is a superset of OpenEJB
-
Tomcat
-
TomEE
- ...5 more annotations...
InfoQ: Apache TomEE 1.0 Released - 0 views
-
Apache TomEE, pronounced "Tommy", is a Java EE 6 Web Profile
-
Servlet, JSP, JSTL
-
(EJB)
- ...7 more annotations...
Persistence - The Java EE 6 Tutorial - 0 views
-
Persistence
-
Java Persistence API
Chapter 9. Integration with Seam 2.2 - 0 views
-
Integration with Seam 2.2
-
GraniteDS provides out-of-the-box integration with Seam 2.2 via either the RemoteObject API or the Tide API to remotely call Seam components, and fully supports serialization of JPA entities from and to your Flex application, taking care of lazily loaded associations
« First
‹ Previous
101 - 120 of 122
Next ›
Showing 20▼ items per page