Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Rua committed Sep 22, 2015
1 parent 9f5d965 commit 6a01772
Showing 1 changed file with 75 additions and 75 deletions.
150 changes: 75 additions & 75 deletions src/com/robrua/orianna/store/HibernateDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ public HibernateDB build() {

// DB configuration
configuration.setProperty("hibernate.dialect", dialect).setProperty("hibernate.connection.driver_class", driver)
.setProperty("hibernate.connection.url", url).setProperty("hibernate.connection.username", username)
.setProperty("hibernate.connection.password", password)
.setProperty("hibernate.connection.url", url).setProperty("hibernate.connection.username", username)
.setProperty("hibernate.connection.password", password)

// Hibernate options
.setProperty("hibernate.cache.provider_class", cacheProvider).setProperty("hibernate.show_sql", Boolean.toString(showSQL))
.setProperty("hibernate.hbm2ddl.auto", autoSchema);
// Hibernate options
.setProperty("hibernate.cache.provider_class", cacheProvider).setProperty("hibernate.show_sql", Boolean.toString(showSQL))
.setProperty("hibernate.hbm2ddl.auto", autoSchema);

return new HibernateDB(configuration, entityClearTheshold);
}
Expand Down Expand Up @@ -296,76 +296,76 @@ public HibernateDB(final Configuration cfg, final int entityClearTheshold) {

// Add DTO classes
cfg.addAnnotatedClass(com.robrua.orianna.type.dto.champion.Champion.class).addAnnotatedClass(com.robrua.orianna.type.dto.champion.ChampionList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.BannedChampion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.CurrentGameInfo.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Observer.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Participant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Rune.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.featuredgames.FeaturedGames.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.game.Game.class).addAnnotatedClass(com.robrua.orianna.type.dto.game.Player.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.game.RawStats.class).addAnnotatedClass(com.robrua.orianna.type.dto.game.RecentGames.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.league.League.class).addAnnotatedClass(com.robrua.orianna.type.dto.league.LeagueEntry.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.league.MiniSeries.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.BannedChampion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.CombinedParticipant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Event.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Frame.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Mastery.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.MatchDetail.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Participant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantFrame.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantIdentity.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantTimeline.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantTimelineData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Player.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Position.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Rune.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Team.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Timeline.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.matchlist.MatchReference.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.matchlist.MatchList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BasicData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BasicDataStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Block.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BlockItem.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Champion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ChampionList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ChampionSpell.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.EffectList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Gold.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Group.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Image.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Info.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Item.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ItemList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ItemTree.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.LanguageStrings.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.LevelTip.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MapData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MapDetails.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTree.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTreeItem.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTreeList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MetaData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Passive.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Realm.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Recommended.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Rune.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.RuneList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Skin.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SpellVars.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Stats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SummonerSpell.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SummonerSpellList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.AggregatedStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.ChampionStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.PlayerStatsSummary.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.PlayerStatsSummaryList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.RankedStats.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.Incident.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Message.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.Service.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Shard.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.ShardStatus.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Translation.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.MasteryPage.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.MasteryPages.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RunePage.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RunePages.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RuneSlot.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.Summoner.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.MatchHistorySummary.class).addAnnotatedClass(com.robrua.orianna.type.dto.team.Roster.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.Team.class).addAnnotatedClass(com.robrua.orianna.type.dto.team.TeamMemberInfo.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.TeamStatDetail.class).addAnnotatedClass(com.robrua.orianna.store.HasAllStatus.class);
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.BannedChampion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.CurrentGameInfo.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Observer.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Participant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.currentgame.Rune.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.featuredgames.FeaturedGames.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.game.Game.class).addAnnotatedClass(com.robrua.orianna.type.dto.game.Player.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.game.RawStats.class).addAnnotatedClass(com.robrua.orianna.type.dto.game.RecentGames.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.league.League.class).addAnnotatedClass(com.robrua.orianna.type.dto.league.LeagueEntry.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.league.MiniSeries.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.BannedChampion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.CombinedParticipant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Event.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Frame.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Mastery.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.MatchDetail.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Participant.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantFrame.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantIdentity.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantTimeline.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.ParticipantTimelineData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Player.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Position.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Rune.class).addAnnotatedClass(com.robrua.orianna.type.dto.match.Team.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.match.Timeline.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.matchlist.MatchReference.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.matchlist.MatchList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BasicData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BasicDataStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Block.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.BlockItem.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Champion.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ChampionList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ChampionSpell.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.EffectList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Gold.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Group.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Image.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Info.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Item.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ItemList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.ItemTree.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.LanguageStrings.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.LevelTip.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MapData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MapDetails.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTree.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTreeItem.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MasteryTreeList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.MetaData.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Passive.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Realm.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Recommended.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Rune.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.RuneList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Skin.class).addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SpellVars.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.Stats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SummonerSpell.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.staticdata.SummonerSpellList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.AggregatedStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.ChampionStats.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.PlayerStatsSummary.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.PlayerStatsSummaryList.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.stats.RankedStats.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.Incident.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Message.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.Service.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Shard.class).addAnnotatedClass(com.robrua.orianna.type.dto.status.ShardStatus.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.status.Translation.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.Mastery.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.MasteryPage.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.MasteryPages.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RunePage.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RunePages.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.summoner.RuneSlot.class).addAnnotatedClass(com.robrua.orianna.type.dto.summoner.Summoner.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.MatchHistorySummary.class).addAnnotatedClass(com.robrua.orianna.type.dto.team.Roster.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.Team.class).addAnnotatedClass(com.robrua.orianna.type.dto.team.TeamMemberInfo.class)
.addAnnotatedClass(com.robrua.orianna.type.dto.team.TeamStatDetail.class).addAnnotatedClass(com.robrua.orianna.store.HasAllStatus.class);

final StandardServiceRegistryBuilder ssrb = new StandardServiceRegistryBuilder().applySettings(cfg.getProperties());
sessionManager = new SessionManager(cfg.buildSessionFactory(ssrb.build()), CHECK_MILLIS);
Expand Down

0 comments on commit 6a01772

Please sign in to comment.