java-sproc-wrapper icon indicating copy to clipboard operation
java-sproc-wrapper copied to clipboard

Remove boilerplate repository methods.

Open s-soroosh opened this issue 10 years ago • 4 comments

What do you think about removing AbstractSProcService subclasses which need to implement all SProcService methods? I think we can use spring-data to generate SP wrappers dynamically. If you think it worth, i can start!

s-soroosh avatar Jan 27 '15 15:01 s-soroosh

I am not 100% sure what and why you want to remove it, we have some projects using the

T SProcProxyBuilder.build(ds, T);

method directly to avoid implementing anything else if i remember correctly.

Any change to make integration with Spring less work is a good idea though, originally we had some use cases for this layer, but they are basically rare.

Jan-M avatar Jan 27 '15 15:01 Jan-M

My idea is just to declare required interfaces, something like spring-data-jpa. So for every Stored Procedure Service, Developer needs just to declare method names and use some annotations and in runtime the stored procedures are called by proxies on the fly.

I thought this approach maybe reduce the effort of development.

s-soroosh avatar Jan 27 '15 17:01 s-soroosh

@psycho-ir I agree with you, from the first place I though that it is something like declare Spring Data JPA's Repository interface, then auto-magically :) and I realized this project have been almost a year from its last update, waiting for update.

mkdika avatar Jun 28 '18 07:06 mkdika

@mkdika It was updated to Spring 4 last year :) Maybe it is worth no to implement JPA-like solution but extend existing Spring JPA implementation.

vadeg avatar Jul 02 '18 17:07 vadeg