`
文章列表
To fix the actual problem you should try to either run the Java code with a newer version of Java JRE or specify the target parameter to the Java compiler to instruct the compiler to create code compatible with earlier Java versions. JRE and JDK 版本不匹配, JDK 新
wildfly-8.x.x.Final/bin$ ./jboss-cli.sh --connect [standalone@localhost:9990 /] deploy xxx
With a combination of JAX_RS 1.1 and Jackson/GSON you can expose JPA entities directly as REST resources, but you will run into a myriad of problems. DTOs i.e. projections onto the JPA entities are the way to go. It would allow you to separate the resource representation concerns of REST from the t ...

JBoss Forge

java 7 JDK forge 2.12.3 http://forge.jboss.org/document/sample-forge-usage-tasks $ project-new --named example --topLevelPackage org.mycomp.myapp --type war --finalName myExample $ jpa-new-entity --named SampleEntity $ jpa-new-field --named sampleField $ jpa-new-field --named createdOn --type jav ...
   SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Critical error during deployment: : com.sun.faces.config.ConfigurationException: The tag named passThroughAttribute from namespace http://xmlns.jcp.org/jsf/core has a null handler-class defined   To fix this, ...
  wildfly-8.2.0.Final/bin$ ./jboss-cl You are disconnected at the moment. Type 'connect' to connect to the server or ' [disconnected /] connect [standalone@localhost:9990 /] module add --name=org.postgres --dependencies=javax.api,javax.transaction.api --resources=/home/jsfcoder/Downloads/postgr ...

What is JAXB

    博客分类:
  • JAXB
  http://www.java2blog.com/2013/02/jaxb-tutorial.html

Postgresql searchpath

 
postgresql allow: jdbc:postgresql://localhost:5432/testingsdb?searchpath=yourschema
"The transaction-type attribute is used to specify whether the entity managers provided by the entity manager factory for the persistence unit must be JTA entity managers or resource-local entity managers. The value of this element is JTA or RESOURCE_LOCAL. A transaction-type of JTA assumes th ...
A unidirectional many-to-one association on a join table is common when the association is optional. For example: <class name="Person">     <id name="id" column="personId">         <generator class="native"/>     </id>     <join ta ...
find JBoss / Wildfly application server ./jboss-cli.sh Install module containing the JDBC Driver. Specify the module name and the location where the jdbc driver has been downloaded: module add --name=org.postgres --resources=/tmp/postgresql-9.3-1101.jdbc41.jar --dependencies=javax.api,javax.transa ...
using the Tools | Test RESTful Web Service command. View | Tool Windows | REST Client - the tool window can be accessed

basic postgres sql

sudo apt-get install postgresql phppgadmin sudo apt-get install pgadmin3 sudo su - postgres createuser drupal Shall the new role be a superuser? (y/n) y psql -d postgres -U postgres alter user postgres with password 'crazylongpassword'; or # \password postgres \q edit the main PostgreSQL access ...

DB2 10.5

 
ubutu 12.04 sudo apt-get install lib32stdc++6 sudo apt-get install libpam0g:i386 sudo ln -s /lib/i386-linux-gnu/libpam.so.0 /lib/libpam.so.0 http://ubuntuforums.org/archive/index.php/t-2144637.html

Intellij maven

 
1)run following command for idea project mvn -U idea:idea 2) /bin/idea64.vmoptions -Xms128m -Xmx8192m -XX:MaxPermSize=1024m 3) addin this line in the maven config <?xml version="1.0" encoding="UTF-8"?> 4) copy commons-lang-2.6.jar /Applications/IntelliJ IDEA 13.app/p ...
Global site tag (gtag.js) - Google Analytics