开发者

Stored procedure to java attributes

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜