2
A
回答
4
随着Fastnate您可以创建实体的SQL语句,而不到一个数据库的连接:
public String createSQL() {
// Create your entity
TestEntity entity = new TestEntity();
entity.setSomeProperty("Example");
...
// Write your entity as SQL
StringWriter result = new StringWriter();
EntitySqlGenerator sqlGenerator = new EntitySqlGenerator(result);
sqlGenerator.write(entity);
return result.toString();
}
相关问题
- 1. 实体框架没有创建插入语句
- 2. PHPBB3 - 从插入语句获取行
- 3. 使用F创建插入语句#
- 4. 在Laravel中创建插入... Select语句
- 5. 获取插入语句查询
- 6. 如何创建“或”语句
- 7. 在实体框架中实现插入语句的方法
- 8. 获取实体导航属性插入
- 9. 从属插入语句
- 10. 从INSERT IGNORE语句获取多个插入ID
- 11. 插入语句
- 12. 获取现有实体(如果它存在或创建一个新实体)
- 13. 如何获取实体框架中插入实体的ID?
- 14. 从语句创建PreparedStatement?
- 15. 如何在插件上创建或获取OrganizationServiceProxy实例
- 16. 获取最近创建的实体的ID - ADO实体框架
- 17. 使用参数和select语句创建一个SQL插入语句
- 18. 插入语句cx_Oracle
- 19. SQL插入语句
- 20. 插入语句2005
- 21. 构建一个大规模的插入语句或许多插入语句会更高效吗?
- 22. sql插入语句语法
- 23. MySQL插入语句语法?
- 24. 实体框架 - 从SQL语句
- 25. 实用程序创建sql语句
- 26. 从实体创建枚举
- 27. MySQL插入语句(插入到表(列)选择语句)
- 28. 将mysql插入语句转换为sql server插入语句?
- 29. 在MySql中创建插入语句的存储过程?
- 30. 解析JSON在PHP中创建SQL插入语句
你的问题作出没有意义的我。 –
请问这个问题更适合.... – Raj
查看JPA/Hibernate .. – kevcodez