enable @EntityListeners in Hibernate 5

I have BaseEntity and i want to set some property in all hibernate add and update ,for do this request we can do that with this code    @MappedSuperclass @EntityListeners(BaseEntityListener.class) public abstract class BaseEntity<T> implements Serializable {   private static final long serialVersionUID = 4295229462159851306L;   @Id @GeneratedValue(strategy = GenerationType.IDENTITY)... [Read More]

Enable log in CXF to see request and response body

Some time we need to see request and response body in soap for trace  by this code when using in java api call we can enable that  final Client client = ClientProxy.getClient(service); client.getInInterceptors().add(new LoggingInInterceptor()); client.getOutInterceptors().add(new LoggingOutInterceptor()); [Read More]

angular $broadcast

AngularJS applications may need to communicate across the controllers. Such a communication might be needed to send notifications or to pass data between the controllers. Although there can be different approaches to achieve this goal, one that is readily available is the event system of $scope and $rootScope. Both of... [Read More]

angular.module

Using angular.module() with two parameters (e.g. angular.module('aziz-module', [])) would result in setting a new module with its corresponding dependencies. In contrast, when using angular.module('aziz') the corresponding module is looked up internally and returned to the caller (getting). The means when you first define you application you might just create the following files and structure. app.js angular.module('myApp',[]); FirstController.js... [Read More]

datasource Initializer for run sql script

some time our application have initial data or sometimes needs to run sql script to create tables or other database object when application init.   in this code when can do that very simple and easy by spring boot    @Inject private DataSource dataSource;   @Value("classpath:schema.sql")  private Resource schemaScript; @Bean public DataSourceInitializer dataSourceInitializer(final DataSource dataSource) {    ... [Read More]