persistence - Is it possible to write custom SQL in OrmLite? -


I have a class that I want to continue and it stores most of my data in a hashmap. I want to map these fields to the table in squid, leave the people missing in the map as null . Is it possible to override ways to save some records in the database using custom implementation using ORMLite?

I think Roddik has been moving but I thought I would be as the author of OrmLite anyway I will post an answer.

My normal answer is that it would be better to create an object to store the columns instead of the map. Although the SQL string is a line of columns, the complete point of ORM is that we can handle rows in the form of objects in Java instead of the map of rows.

  @DatabaseTable public void RandomThing {@ DatabaseField String column 1; @databasefield string column2; @documentfield string column3; Public Zero Randmashing (String column 1, String column 2, String column 3) {...}}  

Right now, there is not a way to continue the map of strings in ORMLite.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -