oney.1.7.0.source-code.bee.properties Maven / Gradle / Ivy
#mysql no dataSource type
#mysql \u65e0\u6570\u636e\u6e90,\u76f4\u8fde\u65b9\u5f0f.\u914d\u7f6edataSource\u4e5f\u53ef\u5f15\u7528
#bee.db.driverName = com.mysql.jdbc.Driver
#bee.db.url =jdbc:mysql://localhost:3306/bee?characterEncoding=UTF-8
#bee.db.username = root
#bee.db.password =
bee.databaseName=mysql
bee.osql.showSQL=true
# since v1.7.0
#bee.osql.showSQL.donotPrint.currentDate=true
#bee.osql.moreTable.columnListWithStar=true
#entity class name->table name, formatter: packagename.ClassName:tableName,packagename.ClassName:tableName
#Separate multiple options with comma. Package name can be omitted if they are not confused.
#Just config for special
#bee.osql.name.mapping.entity2table=User2:temp_user,com.abc.user.User:temp_user
#do not use
#bee.osql.showPreValue=true
#\u6700\u5927\u6279\u5904\u7406\u6570 default is 100
bee.osql.select.batchSize=100
#\u67e5\u8be2\u7ed3\u679c\u76f4\u63a5\u8fd4\u56deJson\u662f\u5426\u5ffd\u7565null
bee.osql.selectJson.ignoreNull=true
#\u67e5\u8be2\u7ed3\u679c\u76f4\u63a5\u8fd4\u56deJson\u4e2d, timestamp\u662f\u5426\u7528\u6beb\u79d2\u8868\u793a
bee.osql.selectJson.timestamp.withMillisecond=true
bee.osql.selectJson.date.withMillisecond=true
bee.osql.selectJson.time.withMillisecond=false
#\u67e5\u8be2\u7ed3\u679c\u8fd4\u56deList\u65f6,\u662f\u5426\u5c06null\u8f6c\u4e3a""
bee.osql.select.returnStringList.nullToEmptyString=false
#bee.osql.select.resultSparator=[#Bee#] delete
# if true will do like that: last_name(DB) <--> lastName (Java)
# \u5b57\u6bb5\u540d\u6709\u5927\u5c0f\u5199\u7684,\u53c8\u60f3Score\u4e0eCamel\u4e24\u79cd\u547d\u540d\u8f6c\u6362,\u5219bee.osql.dbNaming.toLowerCaseBefore\u8981\u5148\u8bbe\u4e3atrue.
#\u82e5\u8981\u4e0b\u5212\u7ebf\u4e0e\u9a7c\u5cf0\u4e92\u8f6c,\u5b57\u6bb5\u540d\u6709\u5927\u5199\u7684,\u8981\u8bbebee.osql.dbNaming.toLowerCaseBefore=true
bee.osql.underScoreAndCamelTransform=true
#\u50cforacle,\u5982\u5b57\u6bb5\u540d\u7b49\u539f\u6765\u90fd\u662f\u5927\u5199,\u53ef\u5148\u8f6c\u6210\u5c0f\u5199\u518d\u8f6c\u6362\u4e3ajava\u547d\u540d.\u8fd9\u6837java\u547d\u540d\u65f6\u5c31\u4e0d\u662f\u5168\u662f\u5927\u5199.
#default: to LowerCase before. \u9ed8\u8ba4\u662f\u5148\u8f6c\u5c0f\u5199,\u56e0\u4e3a\u5982\u4e0d\u8f6c,DB\u6709\u7528\u5927\u5199\u7684\u65f6\u5019\u4f1a\u51fa\u9519
bee.osql.dbNaming.toLowerCaseBefore=true
#\u6700\u5927\u8fd4\u56de\u7ed3\u679c\u6570 #Not enabled
#bee.osql.select.maxResultSize=100
# since v1.7.0
bee.osql.sqlGenerate.moreTableSelect.2tablesWithJoinOnStyle=true
#do not use
#bee.osql.delete.isAllowDeleteAllDataInOneTable=true
#cache=======================start
#\u7f13\u5b58\u7c7b\u578b
#bee.osql.cache.type=FIFO
#\u7f13\u5b58\u96c6\u6570\u636e\u91cf\u6570\u76ee
bee.osql.cache.map.size=100000
#resultset\u8d85\u8fc7\u4e00\u5b9a\u7684\u503c\u5c06\u4e0d\u4f1a\u653e\u7f13\u5b58
bee.osql.cache.work.resultSet.size=300
#\u7f13\u5b58\u4fdd\u5b58\u65f6\u95f4(\u6beb\u79d2 ms)
bee.osql.cache.timeout=180000
#\u68c0\u6d4b\u5230\u8d85\u65f6,\u8d85\u8fc7\u8fd9\u4e2a\u4f7f\u7528\u6bd4\u4f8b\u5219\u987a\u4fbf\u8d77\u7ebf\u7a0b\u6e05\u9664\u7f13\u5b58
bee.osql.cache.startDeleteCache.rate=0.6
#\u7f13\u5b58\u5bb9\u91cf\u4f7f\u7528\u7387;\u6dfb\u52a0\u7f13\u5b58,\u68c0\u6d4b\u8fbe\u5230\u8be5\u4f7f\u7528\u7387\u5219\u6e05\u9664\u4e00\u5b9a\u6bd4\u4f8b\u7f13\u5b58
bee.osql.cache.fullUsed.rate=0.8
#\u6dfb\u52a0\u7f13\u5b58,\u68c0\u6d4b\u5230\u7f13\u5b58\u5bb9\u91cf\u5feb\u6ee1\u65f6,\u5220\u9664\u7f13\u5b58\u6570\u7684\u6bd4\u4f8b
bee.osql.cache.fullClearCache.rate=0.2
#use table name, not entity name
#\u4e0d\u7f13\u5b58\u8868\u7684\u5217\u8868\uff1b
#bee.osql.cache.never=user
#\u6c38\u4e45\u7f13\u5b58\u8868\u7684\u5217\u8868
#bee.osql.cache.forever=constant
#\u6c38\u4e45\u7f13\u5b58,\u4f46\u6709\u66f4\u6539\u65f6\u4e5f\u4f1a\u6e05\u9664\u7f13\u5b58,\u4ee5\u4fbf\u540c\u6b65\u65b0\u7684\u503c\u5230\u7f13\u5b58
#bee.osql.cache.forever.modifySyn=para
#cache=======================end