invariants
Color Bash Prompt - ArchWiki - 0 views
DataSourceDefinition (Java EE 6 ) - 0 views
1More
WYTIWYR : What You Test Is What You Run « Antonio's Blog - 0 views
26More
shared by kuni katsuya on 03 Oct 12
- No Cached
Implementing the Builder Pattern using the Bean Validation API - Musings of a Programmi... - 0 views
musingsofaprogrammingaddict.blogspot.ca/...uilder-pattern-using-bean.html
database jpa EntityBeans BuilderPattern BeanValidation

- ...23 more annotations...
-
mandatory fields – either primitive (e.g. id) or annotated with @NotNull (e.g. lastName) – are part of the builder's constructor
-
variation of the Builder design pattern for instantiating objects with multiple optional attributes.
-
this pattern frees you from providing multiple constructors with the different optional attributes as parameters (hard to maintain and hard to read for clients)
34More
A proper way for JPA entities instantiation « Paul Szulc's Blog - 0 views
- ...31 more annotations...
-
And you shouldn’t really care, all that is important is that UserService depends on dao and webservice object.
-
calling new User(“someName”,”somePassowrd”, “someOtherName”, “someOtherPassword”) becomes hardly readable and maintainable
-
Instead of making the desired object directly, the client calls a constructor (or static factory) with all of the required parameters and gets a builder object. Then the client calls setter-like methods on the builder object to set each optional parameter of interest. Finally, the client calls a parameterless build method to generate the object, which is immutable. The builder is a static member class of the class it builds.
Liquibase | Database Refactoring | manual:command_line - 0 views
DbMaintain - Overview - 1 views
timander/schema-versioning-example · GitHub - 1 views
Test Driven Databases - 1 views
7More
7. Logging - Confluence - 0 views
-
If you need other logging implementation support, you may extend the org.granite.logging.Logger abstract class and register your custom logger with the org.granite.logger.impl system property:
-
<category name="org.granite.messaging.webapp.AMFMessageServlet"> <priority value="DEBUG" /> </category>
- ...2 more annotations...
105More
Java Persistence/Inheritance - Wikibooks, open books for an open world - 0 views
- ...101 more annotations...
-
Single Table Inheritance
-
table is defined for each class in the inheritance hierarchy to store only the local attributes of that class
-
similar to table per class inheritance, but does not allow querying, persisting, or relationships to the superclass
Apache OpenJPA -- Index - 0 views
37More
Selling Weld and EE6 | Weld | JBoss Community - 0 views
- ...32 more annotations...
-
Their template pattern is a solution in search of a problem
-
Because, of course, there are no other well-known patterns for dealing with boiler-plate cleanup code and connection leaks.
-
brain-damage that Spring does to people!
-
It's a very impressive magic trick, and I wish I knew how to do it myself. But then, I'm just not like that. I'm always trying to poke holes in things - whether they were Invented Here or Not.
-
exception handling, this is one area where Spring does a good job: "The Spring Framework's handling of SQLException is one of its most useful features in terms of enabling easier JDBC development and maintenance. The Spring Framework provides JDBC support that abstracts SQLException and provides a DAO-friendly, unchecked exception hierarchy."
-
Automatic connection closing (and other boiler-plate code) is obviously a hard requirement to be handled by the fwk.
-
Pffffff. It's a trivial requirement which I can solve in my framework with two lines of code in a @Disposes method. Did you see any connection handling in the code above?
-
I mean, seriously guys. The Spring stuff is trivial and not even very elegant. I guess it's easier for me to see that, since I spent half my career thinking about data access and designing data access APIs. But even so...
-
They don't understand, or see the value of, using managed objects to represent their persistent data.
-
Um. Why? Why would that be a bad thing? I imagine that any app with 1000 queries has tens of thousands of classes already. What's the problem? Why is defining a class worse than writing a method?
-
Are you working from some totally bizarre metric where you measure code quality by number of classes?
23More
JPA Reference Guide - JBoss AS 7.1 - Project Documentation Editor - 0 views
-
Troubleshooting The org.jboss.as.jpa logging can be enabled to get the following information: INFO - when persistence.xml has been parsed, starting of persistence unit service (per deployed persistence.xml), stopping of persistence unit service DEBUG - informs about entity managers being injected, creating/reusing transaction scoped entity manager for active transaction TRACE - shows how long each entity manager operation took in milliseconds, application searches for a persistence unit, parsing of persistence.xml
- ...20 more annotations...
-
an entity is new if it has just been instantiated using the new operator, and it is not associated with a persistence context. It has no persistent representation in the database and no identifier value has been assigned.
-
a managed entity instance is an instance with a persistent identity that is currently associated with a persistence context.
-
the entity instance is an instance with a persistent identity that is no longer associated with a persistence context, usually because the persistence context was closed or the instance was evicted from the context.
-
a removed entity instance is an instance with a persistent identity, associated with a persistence context, but scheduled for removal from the database.
-
Delete *.index files in as7/modules/org/hibernate/main and as7/modules/org/hibernate/envers/main folders
-
Remove the older jars and copy new Hibernate jars into as7/modules/org/hibernate/main + as7/modules/org/hibernate/envers/main.
1More
Working with Macros - Confluence 3.5 - Atlassian Documentation - Confluence - 0 views
Demo - vaadin.com - 0 views
1More
Salmon Run: Implementing Inheritance in database with JPA - 0 views
13More
shared by kuni katsuya on 27 Sep 12
- No Cached
mysql - Relationship between catalog, schema, user, and database instance - Stack Overflow - 0 views
stackoverflow.com/...ema-user-and-database-instance
database MySQL schema catalog SchemaVsCatalog moronic jdbc jpa

View AllMost Active Members
View AllTop 10 Tags
- 160java
- 159javaee6
- 113security
- 100graniteds
- 86CDI
- 85JPA
- 68documentation
- 67Flex
- 62agile
- 61ApacheShiro
- 52jbossas7
- 50database
- 47configuration
- 45BestPractices
- 44jboss
- 44tutorial
- 43authorization
- 38jira
- 38maven
- 37testing