The core functionality of Spring Data REST is to export resources for Spring Data repositories. Spring Data REST exposes sub-resources of every item resource for each of the associations the item resource has. By default, Spring Data REST uses HAL […]
Programming
Spring HATEOAS
HATEOAS means Hypermedia As The Engine Of Application State ResourceSupport – support class for building DTOs with links ControllerLinkBuilder – allows to create links by pointing to controller classes (Spring MVC controllers or JAX-RS resource classes) With ControllerLinkBuilder you depend […]
Java Memory Model
Volatile doesn’t mean what you think, either
Apache CXF 3.0.3
Scenario 1 All jax-rs annotation are applied on interface. No jax-rs annotation are applied on class. @POST @Consumes({ APPLICATION_XML }) method1(InputStream istream) @POST @Consumes({ APPLICATION_FORM_URLENCODED }) method2a(@FormParam(“”) final Pojo2 p2) -> won’t detect it as a resource method @POST @Consumes({ […]
JAX-RS with Jersey
Terms resource method designator – annotation such as @GET, @PUT, @POST, @DELETE sub-resource methods – methods annotated with @Path and also with resource method designators such as @GET or @POST sub-resource locators – methods annotated with @Path but not with […]
@MapKey vs @MapKeyColumn
// @MapKey refers the field/property (unique one) in the Entity witch is the value of a Map field/property // @MapKeyColumn refers the column in an @ElementCollection @Entity public class Person6 { @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, orphanRemoval = true, […]
ESB
ESB – match and route (filter node for IBM) – convert (protocols) – format data – orchestration (e.g. from some web services, dbs, files, etc collect partial data and create a new web services) – event delivering ESB = Enterprise […]
Angularjs project setup (NODE & YEOMAN)
see also https://docs.angularjs.org/guide/migration # general setup sudo ln -s /usr/bin/nodejs /usr/bin/node -> when node file is not found sudo npm install -g yo bower grunt-cli generator-karma generator-angular # see https://docs.npmjs.com/cli/view # npm help list # sudo npm list -gp […]
npm
show npm configuration npm config list npm config ls -l -> to show all defaults outdated packages listing global outdated packages npm outdated -g –depth=0 update packages named n respectivelly npm sudo npm update -g n npm show npm cache […]
Working with GIT
A Visual Git Reference Understand some basic git concepts visually A successful Git branching model Cherry-picking explained Learn Git with Bitbucket Cloud Squash your latests commits into one # show diff for last commit only git log -p HEAD -1 […]
Compiling and using luarocks
#See https://adrhc.go.ro/wordpress/common-commands-when-building/ for building environment, x.sh script and other things not defined here. #Before starting do declare the environment variables specified to the link above. NEW_BUILD_NAME=luarocks NEW_BUILD_VER=2.2.2 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ffp_0.7_armv5/packages/$NEW_BUILD_NAME- NEW_BUILD_NR=0 cd /ffp/home/root/compile/luarocks-2.2.2 ~/x.sh ffpg ./configure […]
Working with subversion (SVN)
#svn+ssh url examples: svn+ssh://ssh-user@your-remote-svn-server-ip/os-path-to-svn-repository/project-name svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor svn+ssh://root@adrhc.go.ro/i-data/SVN-Repository/image-processor/trunk #starting svn server #path-to-svn-repository: the value for -r svnserve’s option svnserve -d -r path-to-svn-repository –log-file /ffp/log/svnserve.log #ssh-user will also be used as the Author when commiting to SVN #You’ll have to use Putty pageant […]
JPA vs Hibernate
@Formula (hibernate)
Multilayered architecture
Why use a multilayered architecture ? Flexibility It’s easier to understand, create, correct, upgrade a very specialized software component instead of a many-specialized one. Crosscutting Concerns http://msdn.microsoft.com/en-us/library/ee658105.aspx Authentication Authorization Caching Communication Configuration Management Exception Management Logging and Instrumentation State Management […]