开发者

Stored procedure to java attributes

开发者 https://www.devze.com 2023-03-19 00:12 出处:网络
I have a bunch of Sybase SP\'s for CRUD operations that I need to create services for in the mid-tier layer.

I have a bunch of Sybase SP's for CRUD operations that I need to create services for in the mid-tier layer.

All the SP's are in place but the mid-tier开发者_高级运维 has to be built from scratch.

Is there an easy way or a tool that allows you to convert stored procedure parameters into java class attributes?

For example:

create proc insertEmployee( @id int, @floor int )

to

public class Employee{

private int id;
private int floor;
}

etc...

Thanks!


I don't know about such tool. You can write your own generator using database metadata info: Connection.getMetadata()

0

精彩评论

暂无评论...
验证码 换一张
取 消