Java – is it a good habit to package SQL databases in jars?

I want to create a Java library without any dependencies, but it needs to use an embedded SQL database Is it a good practice to package the binary database file and driver to access it in a jar file? What are the advantages and disadvantages?

Solution

Continue, this is a widely used practice used by hibernate

For memory limited devices:

Then don't use embedded databases at all Try using the ThoughtWorks library xStream, which serializes / deserializes objects into XML / JSON, which can be stored in a file Very effective solution with small memory footprint

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>